Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Showing results 1 to 25 of 53
Search took 0.01 seconds.
Search: Posts Made By: myerman
Forum: BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 December 3rd, 2009, 03:59 PM
Replies: 5
Views: 2,869
Posted By myerman
did you autoload the models?

look in the config/config.php file, see if you're autoloading models
Forum: BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 November 20th, 2009, 09:23 AM
Replies: 3
Views: 3,478
Posted By myerman
personally, I don't.....

But I suppose you could reset the timer using the $config['sess_expiration'] ite m in config/config.php. I think it's set to 7200 seconds (2 hours) by default.
Forum: BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 November 17th, 2009, 12:45 PM
Replies: 2
Views: 822
Posted By myerman
hmmmm.....

Okay, here's the function in the Welcome controller:

function index(){
$this->output->cache(30);
$data['title'] = "Welcome to Claudia's Kids";
$data['navlist'] =...
Forum: BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 November 10th, 2009, 06:01 PM
Replies: 8
Views: 2,852
Posted By myerman
what is your email?

would like to send you a quick note.

mine is myerman AT gmail DOT com
Forum: BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 November 10th, 2009, 05:27 PM
Replies: 8
Views: 2,852
Posted By myerman
go right ahead!

I love it! It's an honor to have someone in the community do this. Please share with others, let's keep growing the CodeIgniter world.

BTW, I'm still kicking myself for not asking the publisher...
Forum: BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 November 6th, 2009, 05:43 PM
Replies: 5
Views: 3,187
Posted By myerman
hmmmmm....

confused...isn't it already knocking you out to welcome/verify if you aren't logged in?
Forum: BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 November 6th, 2009, 09:54 AM
Replies: 5
Views: 3,187
Posted By myerman
this was another last-minute thing

Your dashboard controller should start like this:


class Dashboard extends Controller {
function Dashboard(){
parent::Controller();
session_start();

if...
Forum: BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 November 6th, 2009, 09:51 AM
Replies: 2
Views: 1,001
Posted By myerman
this is totally up to you

some folks, like myself, like to do all my data processing in the model. others prefer to do it in the controller. others put stuff like this in libraries or plugins or helpers.....
Forum: BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 November 5th, 2009, 11:36 AM
Replies: 5
Views: 2,869
Posted By myerman
dammit!

Another bit of code that didn't make it into final release of book. GRRRRRR.

The updateCart() function should start out like this.


function updateCart($productid,$fullproduct){
//pull in...
Forum: BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 November 4th, 2009, 10:10 AM
Replies: 14
Views: 5,429
Posted By myerman
so......

somewhere in your main template view, you need to have something like this:


<script type="text/javascript">
//<![CDATA[
base_url = '<?= base_url();?>';
//]]>
</script>
Forum: BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 October 16th, 2009, 04:55 AM
Replies: 6
Views: 855
Posted By myerman
aha!

actually, any link back to your site will be okay. remember, the shopping cart is stored in a session, so you can go back to it.
Forum: BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 October 16th, 2009, 03:44 AM
Replies: 6
Views: 855
Posted By myerman
hmmmm.....

You're saying that you can't get past a certain point. What's going on? details? code? what is it that you're trying to do? i'm pulling some seriously long hours on a project, but while I'm up...
Forum: BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 October 16th, 2009, 03:04 AM
Replies: 6
Views: 855
Posted By myerman
what do you mean?

can you elaborate?
Forum: BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 October 9th, 2009, 07:08 AM
Replies: 4
Views: 2,793
Posted By myerman
use the img() helper

make sure you load the HTML helper, then use br() like this:


echo img('/image/src/foo.gif');


http://codeigniter.com/user_guide/helpers/html_helper.html#img

If you need to use it as part...
Forum: BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 October 7th, 2009, 08:42 AM
Replies: 6
Views: 6,455
Posted By myerman
on the create() function?

No, that one calls the addProduct() function over in MProducts model
Forum: BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 October 7th, 2009, 08:04 AM
Replies: 6
Views: 6,455
Posted By myerman
in the same model....

In the same model there is a function called getCategoriesDropDown() which should do what you're describing.


function getCategoriesDropDown(){
$data = array();
...
Forum: BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 October 6th, 2009, 07:02 PM
Replies: 6
Views: 6,455
Posted By myerman
hmmmmmm.....

look in the mcats model...there should be a function called getCategoriesNav()...I think this grabs all the categories and builds a multidimensional array that you can process....I think that's...
Forum: BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 September 30th, 2009, 08:26 AM
Replies: 2
Views: 763
Posted By myerman
yes

That's exactly right. The idea is to get all the top-level categories (ie, those categories that don't have a parent) in the system.
Forum: BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 September 28th, 2009, 08:26 AM
Replies: 2
Views: 835
Posted By myerman
the best way to find out is.....

if you look at what controller/function is calling this view, there should be a line like this:

$data['categories'] = ........;

the ...... part should have a call to a model and...
Forum: BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 September 5th, 2009, 10:24 AM
Replies: 9
Views: 2,412
Posted By myerman
I'm a bit stumped....

Is there some way for you to drop your files onto an FTP site or a ZIP archive so I can see what you're doing? If you have the helper autoloaded and you've added the MY helper then you should be all...
Forum: BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 September 2nd, 2009, 08:15 AM
Replies: 6
Views: 4,734
Posted By myerman
so sorry!

I'm hammering away at various deadlines and didn't get a chance to come back here until just now. After the 15th of september, I will be more available.
Forum: BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 August 30th, 2009, 10:34 AM
Replies: 6
Views: 4,734
Posted By myerman
Interesting thought

Well, I dunno if what you propose is actually doable, where you pass in an ID straight to the controller without even calling a function. In fact, I think it's pretty much not doable.
...
Forum: BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 August 13th, 2009, 08:37 AM
Replies: 2
Views: 3,621
Posted By myerman
mmm, db_clean

I introduce the concept of db_clean() in chapter 9, which is part of a refactoring discussion on security. Originally though, in chapter 6, I wanted you to create some functionality without the extra...
Forum: BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 July 31st, 2009, 09:30 PM
Replies: 9
Views: 1,188
Posted By myerman
cool....

can you talk about your experiences with SYNON/2 more? These kinds of discussions are interesting, mostly because it allows developers of all stripes/kinds to talk about architectural concerns.

I...
Forum: BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 July 31st, 2009, 08:00 AM
Replies: 9
Views: 1,188
Posted By myerman
scaling

Well, let me rephrase -- from a technical point of view, you'd scale okay. The database can handle it admirably. From a UX perspective, not so much. Users want to see a destination "stand still" if...
Showing results 1 to 25 of 53

 




Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.