Re: Help needed with an error

2008-09-26 Thread Eemerge

Thanks, i will ask the server admin to restart it and hopefully it
will work. I'll post after the restart is done.

On Sep 26, 5:00 pm, RichardAtHome <[EMAIL PROTECTED]> wrote:
> Just come across this when I renamed my web root folder.
>
> I think this is to do with me using APC and isn't a CakePHP issue (now
> that you have deleted the cache).
>
> Restart Apache. This will clear the APC cache.
>
> On Sep 26, 2:17 pm, Eemerge <[EMAIL PROTECTED]> wrote:
>
> > just cleared them, same thing. still not working. I read somewhere i
> > should define the CAKE_INCLUDE_PATH (or something like this)
> > manually... to what should it point? what path?
>
> > On Sep 26, 2:02 pm, grigri <[EMAIL PROTECTED]> wrote:
>
> > > Have you tried emptying the cache files? If the directory names have
> > > changed since cake's cache was built then this is what would happen.
>
> > > On Sep 26, 11:27 am, Eemerge <[EMAIL PROTECTED]> wrote:
>
> > > > Hello,
>
> > > > I would like some help with the following error:
>
> > > > Warning: require(cake/bootstrap.php) [function.require]: failed to
> > > > open stream: No such file or directory in /home/mainfram/public_html/
> > > > shoplog/app/webroot/index.php on line 79
>
> > > > Fatal error: require() [function.require]: Failed opening required
> > > > 'cake/bootstrap.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/
> > > > home/mainfram/php') in /home/mainfram/public_html/shoplog/app/webroot/
> > > > index.php on line 79
>
> > > > The strange thing about is that, 2 weeks ago it was working ,
> > > > everything was ok, there were some problems on the hosting server, and
> > > > now it stopped working.
>
> > > > If anyone cane help, i'd really appreciate it.
>
> > > > Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Help needed with an error

2008-09-26 Thread Eemerge

just cleared them, same thing. still not working. I read somewhere i
should define the CAKE_INCLUDE_PATH (or something like this)
manually... to what should it point? what path?

On Sep 26, 2:02 pm, grigri <[EMAIL PROTECTED]> wrote:
> Have you tried emptying the cache files? If the directory names have
> changed since cake's cache was built then this is what would happen.
>
> On Sep 26, 11:27 am, Eemerge <[EMAIL PROTECTED]> wrote:
>
> > Hello,
>
> > I would like some help with the following error:
>
> > Warning: require(cake/bootstrap.php) [function.require]: failed to
> > open stream: No such file or directory in /home/mainfram/public_html/
> > shoplog/app/webroot/index.php on line 79
>
> > Fatal error: require() [function.require]: Failed opening required
> > 'cake/bootstrap.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/
> > home/mainfram/php') in /home/mainfram/public_html/shoplog/app/webroot/
> > index.php on line 79
>
> > The strange thing about is that, 2 weeks ago it was working ,
> > everything was ok, there were some problems on the hosting server, and
> > now it stopped working.
>
> > If anyone cane help, i'd really appreciate it.
>
> > Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Help needed with an error

2008-09-26 Thread Eemerge

Hello,

I would like some help with the following error:

Warning: require(cake/bootstrap.php) [function.require]: failed to
open stream: No such file or directory in /home/mainfram/public_html/
shoplog/app/webroot/index.php on line 79

Fatal error: require() [function.require]: Failed opening required
'cake/bootstrap.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/
home/mainfram/php') in /home/mainfram/public_html/shoplog/app/webroot/
index.php on line 79

The strange thing about is that, 2 weeks ago it was working ,
everything was ok, there were some problems on the hosting server, and
now it stopped working.

If anyone cane help, i'd really appreciate it.

Thanks


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Help needed with an error

2008-09-26 Thread Eemerge

just cleared them, same thing. still not working. I read somewhere i
should define the CAKE_INCLUDE_PATH (or something like this)
manually... to what should it point? what path?

On Sep 26, 2:02 pm, grigri <[EMAIL PROTECTED]> wrote:
> Have you tried emptying the cache files? If the directory names have
> changed since cake's cache was built then this is what would happen.
>
> On Sep 26, 11:27 am, Eemerge <[EMAIL PROTECTED]> wrote:
>
> > Hello,
>
> > I would like some help with the following error:
>
> > Warning: require(cake/bootstrap.php) [function.require]: failed to
> > open stream: No such file or directory in /home/mainfram/public_html/
> > shoplog/app/webroot/index.php on line 79
>
> > Fatal error: require() [function.require]: Failed opening required
> > 'cake/bootstrap.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/
> > home/mainfram/php') in /home/mainfram/public_html/shoplog/app/webroot/
> > index.php on line 79
>
> > The strange thing about is that, 2 weeks ago it was working ,
> > everything was ok, there were some problems on the hosting server, and
> > now it stopped working.
>
> > If anyone cane help, i'd really appreciate it.
>
> > Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



hasAndBelongsToMany issue

2008-01-22 Thread Eemerge

Hello,

I have 3 tables:

1. posts
2. categories
3. post_2_cat

I am trying to use hasAndBelongsToMany to fetch a post and its
associated categories (from post_2_cat)

The only problem i encountered so far is with table fields names.
Initially i had post_id and category_id in the posts and categories
tables. This way, i dont get anything returned with
hasAndBelongsToMany.
If i modify the fields names to 'id' , i get the expected results.

var $hasAndBelongsToMany=array('Category'=>


array('className'=> 'Category',
 'joinTable'=> 'post_2_cat',
 'foreignKey'   => 'post_id',
 'associationForeignKey'=>
'cat_id',
 'conditions'   => '',
 'order'=> '',
 'limit'=> '',
 'unique'   => true,
 'finderQuery'  => '',
 'deleteQuery'  => '',
   )

Above is the code that does this (resides in models/post.php).

My question is, how can i use hasAndBelongToMany but not have to use
"id" in my tables (for example i want to use: post_id instead of id ,
in the posts table).

Thanks in advance. Also, any other advices are welcome as im quite new
to cakephp (which rocks btw :) )
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Newbie question: how do i load the javascript helper ?

2007-12-02 Thread Eemerge

Thanks for the tip, i was actually modifying app_controller from cake/
dir :)

On Dec 1, 2:14 am, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote:
> Don't touch cake/ dir, copy the app_controller.php into app/, then the
> that one takes precedence, so tweak as needed.
>
> 2007/11/30, Eemerge <[EMAIL PROTECTED]>:
>
>
>
> > Ok i added that line in cake/app_controller.php and so far so good.
>
> > Thanks for the help :)
>
> > On Nov 30, 11:41 pm, "Christopher E. Franklin, Sr."
> > <[EMAIL PROTECTED]> wrote:
> > > My bad, it's at the very end of helpers section which makes no sense
> > > to me since it should be at the very top.  It is also in the
> > > controllers section:
> > > ---
> > > $helpers
>
> > > Use this variable to have your controller load helpers into its views.
> > > The HTML helper is automatically loaded, but you can use this variable
> > > to specify a few others:
> > > var $helpers = array('Html','Ajax','Javascript');
>
> > > Remember that you will need to include the HtmlHelper in the $helpers
> > > array if you intend to use it. It is normally available by default,
> > > but if you define $helpers without it, you'll get error messages in
> > > your views.
> > > ---
> > > On Nov 30, 12:36 pm, Eemerge <[EMAIL PROTECTED]> wrote:
>
> > > > Thanks for the answer, one more thing though, should i use it in every
> > > > controller or just the main app controller?
>
> > > > Christopher E. Franklin, Sr. : i will check again, though i checked
> > > > several times.maybe it slipped :)
>
> > > > On Nov 30, 7:02 pm, ldb <[EMAIL PROTECTED]> wrote:
>
> > > > > G'day
>
> > > > > Hopefully I'm not misunderstanding.
>
> > > > > In your controller, make sure you have it defined. "var $helpers =
> > > > > array('Html', 'Form','Javascript', 'Ajax' );" is the full line I have
> > > > > for context.
> > > > > That will work for just Javascript.
> > > > > If you use any helpers that are not built in, just make sure you put a
> > > > > copy of the helper is in "app/views/helpers" and then add the name,
> > > > > just like you did with 'Javascript'.
>
> > > > > You should now have access.:-)
>
> > > > > On Nov 30, 11:31 am, Eemerge <[EMAIL PROTECTED]> wrote:
>
> > > > > > Sorry to ask such a newbie question, but i didnt find anything about
> > > > > > it in the manual. Maybe i missed it, but anyway:
>
> > > > > > how do i load the javascript helper?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Newbie question: how do i load the javascript helper ?

2007-11-30 Thread Eemerge

Ok i added that line in cake/app_controller.php and so far so good.

Thanks for the help :)

On Nov 30, 11:41 pm, "Christopher E. Franklin, Sr."
<[EMAIL PROTECTED]> wrote:
> My bad, it's at the very end of helpers section which makes no sense
> to me since it should be at the very top.  It is also in the
> controllers section:
> ---
> $helpers
>
> Use this variable to have your controller load helpers into its views.
> The HTML helper is automatically loaded, but you can use this variable
> to specify a few others:
> var $helpers = array('Html','Ajax','Javascript');
>
> Remember that you will need to include the HtmlHelper in the $helpers
> array if you intend to use it. It is normally available by default,
> but if you define $helpers without it, you'll get error messages in
> your views.
> ---
> On Nov 30, 12:36 pm, Eemerge <[EMAIL PROTECTED]> wrote:
>
> > Thanks for the answer, one more thing though, should i use it in every
> > controller or just the main app controller?
>
> > Christopher E. Franklin, Sr. : i will check again, though i checked
> > several times.maybe it slipped :)
>
> > On Nov 30, 7:02 pm, ldb <[EMAIL PROTECTED]> wrote:
>
> > > G'day
>
> > > Hopefully I'm not misunderstanding.
>
> > > In your controller, make sure you have it defined. "var $helpers =
> > > array('Html', 'Form','Javascript', 'Ajax' );" is the full line I have
> > > for context.
> > > That will work for just Javascript.
> > > If you use any helpers that are not built in, just make sure you put a
> > > copy of the helper is in "app/views/helpers" and then add the name,
> > > just like you did with 'Javascript'.
>
> > > You should now have access.:-)
>
> > > On Nov 30, 11:31 am, Eemerge <[EMAIL PROTECTED]> wrote:
>
> > > > Sorry to ask such a newbie question, but i didnt find anything about
> > > > it in the manual. Maybe i missed it, but anyway:
>
> > > > how do i load the javascript helper?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Newbie question: how do i load the javascript helper ?

2007-11-30 Thread Eemerge

Thanks for the answer, one more thing though, should i use it in every
controller or just the main app controller?


Christopher E. Franklin, Sr. : i will check again, though i checked
several times.maybe it slipped :)

On Nov 30, 7:02 pm, ldb <[EMAIL PROTECTED]> wrote:
> G'day
>
> Hopefully I'm not misunderstanding.
>
> In your controller, make sure you have it defined. "var $helpers =
> array('Html', 'Form','Javascript', 'Ajax' );" is the full line I have
> for context.
> That will work for just Javascript.
> If you use any helpers that are not built in, just make sure you put a
> copy of the helper is in "app/views/helpers" and then add the name,
> just like you did with 'Javascript'.
>
> You should now have access.:-)
>
> On Nov 30, 11:31 am, Eemerge <[EMAIL PROTECTED]> wrote:
>
> > Sorry to ask such a newbie question, but i didnt find anything about
> > it in the manual. Maybe i missed it, but anyway:
>
> > how do i load the javascript helper?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Newbie question: how do i load the javascript helper ?

2007-11-30 Thread Eemerge

Sorry to ask such a newbie question, but i didnt find anything about
it in the manual. Maybe i missed it, but anyway:

how do i load the javascript helper?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: How to add .html suffix to CakePHP urls?

2007-11-29 Thread Eemerge

Thanks, i will look into it.

On Nov 29, 2:20 pm, Baz <[EMAIL PROTECTED]> wrote:
> http://www.webdevelopment2.com/the-secret-of-cakephp-advanced-routing...
>
> --
> Baz L
> Web Development 2.0: Web Design, CakePHP, 
> Javascripthttp://www.WebDevelopment2.com/
>
> On Nov 29, 2007 5:20 AM, Eemerge <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hello to everybody on this group!
> > I am just starting up with CakePHP, and i was wondering if its
> > possible to add the .html suffix to cake`s urls
>
> > Example:
>
> > instead of http:/www.mydomain.com/posts/my-new-post/
>
> > i would like it to be
>
> >http://www.mydomain.com/posts/my-new-post.html
>
> > Any help would be appreciated.
>
> > Thanks.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



How to add .html suffix to CakePHP urls?

2007-11-29 Thread Eemerge

Hello to everybody on this group!
I am just starting up with CakePHP, and i was wondering if its
possible to add the .html suffix to cake`s urls

Example:

instead of http:/www.mydomain.com/posts/my-new-post/

i would like it to be

http://www.mydomain.com/posts/my-new-post.html

Any help would be appreciated.

Thanks.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---