Re: CakePHP Manual 1.x.x.2806

2006-05-09 Thread John Zimmerman [gmail]
Thanks for the very speedy update.On 5/9/06, Mika <[EMAIL PROTECTED]> wrote:
Api done too.
--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---


Re: Session issue

2006-05-09 Thread Larry E. Masters aka PhpNut
Ok then you should place a favicon.ico in C:\xampp\htdocs\The problem is FireFox calls this on the first request to the server, at least it used to.Check you Apache logs and you will see if this is the case.
So do like I suggested many post above. Add the file. You will see that most, if not all the time  when I suggest something on this list I am correct. If this does not correct your problem, then we can debug more. But until you do what I suggest, I think it will be wasted time...
-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut* @access  public*

--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---


Re: Session issue

2006-05-09 Thread [EMAIL PROTECTED]

Ok so: first of all the problem occours only with Firefox, not with IE
why?

And I installed Cake into: C:\xampp\htdocs\process_strategy\

Web accessible path I assume is C:\xampp\htdocs so in browser:
http://localhost/process_strategy/

I feel we are near to the solution...


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: CakePHP Manual 1.x.x.2806

2006-05-09 Thread Mika

Api done too.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Problem with baking views

2006-05-09 Thread calzone

This is a "known issue" with mysql installations on OS X 10.4

the official workaround is posted here:
http://docs.info.apple.com/article.html?artnum=301457

Other people have suggested simply creating a symlink, which sounds
like a very sound recommendation. However, by the time I had read that,
I had already followed the official advice.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: CakePHP Manual 1.x.x.2806

2006-05-09 Thread Mika

cake-manual.chm released. Go get it...


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Problem with baking views

2006-05-09 Thread NickW

Hi,

I'm just starting out with Cake and am going through the "Cake Bakery"
tutorial.

I'm at the point where you use bake to create your scaffolded views but
I'm getting this error:

"Warning: mysql_connect(): Can't connect to local MySQL server through
socket '/var/mysql/mysql.sock' (2) in
/Library/WebServer/Documents/development/bakery/cake/libs/model/dbo/dbo_mysql.php
on line 117"

I'm on OSX10.4 and have mysql installed in usr/local/ so I assume that
could be the problem...however if I manually create my views, Cake has
no problem connecting to mysql.

Is there a way to tell Cake where to look for the mysql.sock file?


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Multi-templates in CakePHP apps

2006-05-09 Thread Larry E. Masters aka PhpNut
Dinh,I wrote this theme class a few months ago and have note checked to see if it would work with the latest release. But for the most part it should, when I make changes in the core, I usally am pretty good about not breaking other code I wrote.
http://cakeforge.org/snippet/detail.php?type=snippet&id=18-- /*** @author Larry E. Masters* @var string $userName
* @param string $realName* @returns string aka PhpNut* @access  public*/ 


--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---


Multi-templates in CakePHP apps

2006-05-09 Thread Dinh
Hello all,Is there any way to develop a distributable template in Cake? I find that putting all template files in to a single view directory as instructed in Cake manual make it impossible to attach more than one distributable template into a single application. I wish that I can put all my template file into a sub directory in views like this
  --> views  -->template1   -- pages   -- layouts   -- images   -- controller_name_1
   -- controller_name_2   -- sub_controller_name_2 -->template2  -- pages
   -- layouts
   -- images
   -- controller_name_1
   -- controller_name_2
   -- sub_controller_name_2Does CakePHP currently support this kind of templating?Thanks-- Nobody in nowhere

--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---


Re: beforeFilter

2006-05-09 Thread calzone

Authentication rears it's ugly head again.

I've been working on my own authentication scheme. I got it working on
a single controller, but I'm loathe to have to think of adding it to
every single controller. So I was trying out using beforeFilter in
cake/app_controller.php to perform the authentication.

Well aside from the obvious problem suggested by this topic, namely
that now I would have all my pages protected, I'm finding I can't
really get it working at all.  The problem seems to be an endless loop
because whenever app_controller detects the user is not logged in, it
tries to take action to ask that user to log in, which in turn means a
new controller, which inherits app_controller to begin with.

Obviously, I'm going about this the wrong way.  Is there a right way,
or do I dimply have to relegate myself to adding this bit of
beforeFilter to every single *_controller.php?


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



How to let form have more fields than model

2006-05-09 Thread GregL

I want to connect my registration form to my User model -- a natural
thing to do. But the registration form has two fields that are not part
of the User model. First, I have a "verify password" where they input
the password a second time, so I want to use it to validate but not
store in the database. Also I have a checkbox "I have read your site
policies" that I want to validate but not store in the database.

If I output the extra form elements like this:

checkbox('User/read_policies')?>

for the "I read the policies" checkbox, then calling save() will look
for such a database field, which is absent. If I leave out the "User/"
part, I get an error "Fatal error: Cannot instantiate non-existent
class: read_policies" because no model is specified.

So how can I most easily leave in these extra fields but make use of
automatic behavior of save() for the fields actually in the DB?


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Switching associations on and off

2006-05-09 Thread [EMAIL PROTECTED]

Hi, Adam!

Try to use this:
http://cakebaker.wordpress.com/2006/02/22/new-feature-bindmodelunbindmodel/

-- 
Regards,
jtraub


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Switching associations on and off

2006-05-09 Thread Samuel DeVore
you should look in the api for the bindModel and unbindModel methods for the model, I think it is what you are looking for, it's a little cleaner and the reset after you use them
http://api.cakephp.org/class_model.htmldoesn't seem to be in the manual yet, but there was a page in the wikiSam DOn 5/9/06, BCN Adam
 <[EMAIL PROTECTED]> wrote:Hullo,
I am basically posting the same question as thirdleaf on 2006-01-01 tosee if there is any more news or information.I have two tables 'foo' and 'bar', which are joined by a HABTMrelationship with the table 'foo_bar'.
Sometimes I would like to use these associations, and sometimes not.At the moment I am putting the following in foo_controller.php (someexamples):  $this->Foo->hasAndBelongsToMany = null;
  $data = "">to disactivate this particular association, or  $this->Foo->hasAndBelongsToMany['Bar']['limit'] = 5;  $data = "">to set a special "limit first 5" condition.
Is there a better or different way of doing this?Regards,AdamPS:  I have been using CakePHP for about a year now and this is myfirst post to the Google group. Congrats and thanks to all who have
been involved in this project. Keep up the good work!

--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---


Re: CakePHP Manual 1.x.x.2806

2006-05-09 Thread Gustavo Carreno

On 5/10/06, John Zimmerman [gmail] <[EMAIL PROTECTED]> wrote:
> Are there plans to continue releasing the manual in .chm format?

Yeap, just waiting on Mika to get the last one done.
He actually sent me one, but because it was probably not 2806 I didn't
included it and am waiting on Mika to update to rev 2806.
He's a quick lill bunny, he'll getting up in 24h or less.

--
< If you know Red Hat you know Red Hat,
If you know Slackware you know Linux >

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: prevent expiration of session info?

2006-05-09 Thread BCN Adam

In app/config/core.php on line 108:

/**
 * Set Cake Session time out.
 * If CAKE_SECURITY define is set
 * high: multiplied by 10
 * medium: is multiplied by 100
 * low is: multiplied by 300
 *
 *  Number below is seconds.
 */
define('CAKE_SESSION_TIMEOUT', '120');

Hope that helps,

Adam


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Switching associations on and off

2006-05-09 Thread BCN Adam

Hullo,

I am basically posting the same question as thirdleaf on 2006-01-01 to
see if there is any more news or information.

I have two tables 'foo' and 'bar', which are joined by a HABTM
relationship with the table 'foo_bar'.

Sometimes I would like to use these associations, and sometimes not.
At the moment I am putting the following in foo_controller.php (some
examples):

  $this->Foo->hasAndBelongsToMany = null;
  $data = $this->Foo->findAll;

to disactivate this particular association, or

  $this->Foo->hasAndBelongsToMany['Bar']['limit'] = 5;
  $data = $this->Foo->findAll;

to set a special "limit first 5" condition.

Is there a better or different way of doing this?

Regards,

Adam

PS:  I have been using CakePHP for about a year now and this is my
first post to the Google group. Congrats and thanks to all who have
been involved in this project. Keep up the good work!


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: CakePHP Manual 1.x.x.2806

2006-05-09 Thread John Zimmerman [gmail]

Thanks for the update.

Are there plans to continue releasing the manual in .chm format?

On 5/9/06, Gustavo Carreno <[EMAIL PROTECTED]> wrote:
>
> Hi there!
>
> New release of your packaged manuals.
>
> [Notes]
> Since the new look has been released, Mika had a going at it on the
> manual point of view, but we both recognize it needs some improvement.
>
> Grab it at: http://cakeforge.org/frs/?group_id=53&release_id=90
>
> [Changelog]
> [2806][john]  Editing View Caching section.
> [2783][john]  Adding section on creating customized scaffolding views.
> [2776][CraZyLeGs] fixed typos in view cache chapter
> [2756][CraZyLeGs] Added View caching chapter
> [2739][gwoo]  fixin another bad commit
> [2736][gwoo]  more editing of code blocks
> [2735][CraZyLeGs] -fixed ticket #747
>   -fixed ticket #752
>   -added lang="en" attribute to the book tag
>   -added ulink tags to links in chapter 3, section 2.1
>   -corrected svn repo link to
>   https://svn.cakephp.org/repo/trunk/cake/ and
>   https://svn.cakephp.org/repo/trunk/cake/1.x.x.x/
>   in chapter 3, section 2.1
>   -corrected book version ( 1.x.x.x )
>   -added a note in chapter 3, section 2.1 ( production setup )
>   - corrected typo chapter 3 section 3.3.screen ( 
> contfrollers -> controllers)
> [2734][gwoo]  adding CrazyLegs changes back in
> [2733][gwoo]  chapter 11 updates
> [2732][gwoo]  chapter 6 updates
> [2729][CraZyLeGs]
> [2722][gwoo]  fixing blog tutorial
> [2707][phpnut]Correcting code examples in manual
> [2692][gwoo]  fixed scaffolding section markup so it will render properly
> [2683][gwoo]  fixed models section
> [2682][phpnut]Reverting last commit
> [2681][phpnut]Removing tags from docbook
> [2674][phpnut]Removed format="linespecific" from docbook
> [2673][phpnut]Fixing bad tags in xml
> [2672][phpnut]Fixed wrong tags in xml
> [2671][phpnut]Fixing bad tags in xml
> [2670][phpnut]adding missing php tags
> [2669][phpnut]Removing unneeded xml nodes
> [2668][phpnut]Adding suggestions from Ticket #716
> [2667][phpnut]Adding fix for Ticket #724
> [2666][phpnut]Adding cache helper section.
>   Adding Plugins, Dispatcher, and Inflections appendix
> [2661][phpnut]Correcting typos and content in manual
> [2660][phpnut]Correcting typos in manual
> [2657][phpnut]Working on manual formating.
> [2610][nate]  Adding fix for Ticket #695
>
> That's all,
> Gustavo Carreno aka [Batch]
> Mladen Mihajlovic aka Mika
> --
> < If you know Red Hat you know Red Hat,
> If you know Slackware you know Linux >
>
> >
>

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



CakePHP Manual 1.x.x.2806

2006-05-09 Thread Gustavo Carreno

Hi there!

New release of your packaged manuals.

[Notes]
Since the new look has been released, Mika had a going at it on the
manual point of view, but we both recognize it needs some improvement.

Grab it at: http://cakeforge.org/frs/?group_id=53&release_id=90

[Changelog]
[2806][john]  Editing View Caching section.
[2783][john]  Adding section on creating customized scaffolding views.
[2776][CraZyLeGs] fixed typos in view cache chapter
[2756][CraZyLeGs] Added View caching chapter
[2739][gwoo]  fixin another bad commit
[2736][gwoo]  more editing of code blocks
[2735][CraZyLeGs] -fixed ticket #747
  -fixed ticket #752
  -added lang="en" attribute to the book tag
  -added ulink tags to links in chapter 3, section 2.1
  -corrected svn repo link to
  https://svn.cakephp.org/repo/trunk/cake/ and
  https://svn.cakephp.org/repo/trunk/cake/1.x.x.x/
  in chapter 3, section 2.1
  -corrected book version ( 1.x.x.x )
  -added a note in chapter 3, section 2.1 ( production setup )
  - corrected typo chapter 3 section 3.3.screen ( contfrollers 
-> controllers)
[2734][gwoo]  adding CrazyLegs changes back in
[2733][gwoo]  chapter 11 updates
[2732][gwoo]  chapter 6 updates
[2729][CraZyLeGs]   
[2722][gwoo]  fixing blog tutorial
[2707][phpnut]Correcting code examples in manual
[2692][gwoo]  fixed scaffolding section markup so it will render properly
[2683][gwoo]  fixed models section
[2682][phpnut]Reverting last commit
[2681][phpnut]Removing tags from docbook
[2674][phpnut]Removed format="linespecific" from docbook
[2673][phpnut]Fixing bad tags in xml
[2672][phpnut]Fixed wrong tags in xml
[2671][phpnut]Fixing bad tags in xml
[2670][phpnut]adding missing php tags
[2669][phpnut]Removing unneeded xml nodes
[2668][phpnut]Adding suggestions from Ticket #716
[2667][phpnut]Adding fix for Ticket #724
[2666][phpnut]Adding cache helper section.
  Adding Plugins, Dispatcher, and Inflections appendix
[2661][phpnut]Correcting typos and content in manual
[2660][phpnut]Correcting typos in manual
[2657][phpnut]Working on manual formating.
[2610][nate]  Adding fix for Ticket #695

That's all,
Gustavo Carreno aka [Batch]
Mladen Mihajlovic aka Mika
--
< If you know Red Hat you know Red Hat,
If you know Slackware you know Linux >

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



prevent expiration of session info?

2006-05-09 Thread Dave

I'm using the Cake Session component to store user login information.
This is a Web app for which the user will want to remain logged in
indefinitely. Right now, after a little while the session information
appears to be gone (and thus the user is no longer logged in). How can
I change this?


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Session issue

2006-05-09 Thread Larry E. Masters aka PhpNut
Ok lets try this one last time.You DOCUMENT ROOT in the path where apache looks for the app/webroot.Where did you install cake? Is it in a sub directory of your web accessible path?If this is the case, or you do not have DOCUMENT ROOT set to app/webroot, then  you need to copy the 
favicon.ico to your webservers root pathThis would be www.example.com/  << where ever this would be directedAnd correct me if I am wrong this only happens with Fire Fox?
-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut* @access  public*/On 5/9/06, 
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Ok, this is what I got:Array([Config] => Array([rand] => 2397[time] => 1147224143[userAgent] => ed1c6dfd48691613681e0b701c02a7d4
)[Customers] => Array([id] => favicon.ico)) 

--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---


Re: Session issue

2006-05-09 Thread [EMAIL PROTECTED]

Ok, this is what I got:

Array
(
[Config] => Array
(
[rand] => 2397
[time] => 1147224143
[userAgent] => ed1c6dfd48691613681e0b701c02a7d4
)

[Customers] => Array
(
[id] => favicon.ico
)

)


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Model association

2006-05-09 Thread roberts.sean

I read through the manual in one go last week, totally forgot I had to
set up the associations myself.

Now that I've done it I can't believe how simple it is.  I'm REALLY
starting to like this whole baking thing.  Thanks John!


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Model association

2006-05-09 Thread John Anderson

Gotta use model assocations - it makes this sort of thing so much nicer.

http://manual.cakephp.org/chapter/6

Looks like your Comment belongsTo Post, and probably Post hasMany  
Comment.

Give the manual a look, and let me know if you have questions on it.

-- J

On May 9, 2006, at 1:47 PM, roberts.sean wrote:

>
> I'm having a similar problem simply trying to add comments to posts.
> I've tried to get a list of comments that would be associated with a
> single post by adding
>
> $this->set('comments', $this->Comment->findAll("WHERE post_id =
> '$id'"));
>
> to the view() function under posts_controller.php but that line  
> returns
> "Fatal error: Call to a member function on a non-object".  I don't
> fully understand how to go about viewing and manipulating data like
> comments that are fully dependent on posts.  I shouldn't have to  
> set up
> individual controllers and views for them because I don't want  
> users to
> have to go to /comments to view them.
>
> Can anyone give a little insight into this as well as the original
> question?
>
>
> >


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Session issue

2006-05-09 Thread John Zimmerman [gmail]

Ok.

In your view (at the top) do the following and then send us the output
when you view your html page.

";
print_r($_SESSION);
print "";
exit;
?>

This should give us the contents of your session while your view is rendering.

On 5/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Here it is man:
>
>  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> http://www.w3.org/1999/xhtml";>
> 
> CakePHP : A Rapid Development Framework :: Projects
> 
>  /> href="/process_strategy/css/cake.default.css" />
> 
> 
> 
> 
> 
> 
> Registered Projects
> 
>
> 
> Id
> Project
>  
> 
> 
> 1
>
> 
> Geran BR
> 8.0
>  onclick="return
> confirm('Are you sure you want to delete?');">Delete
> 
> 
> 2
>
> 
> Geran BR
> 9.0
>  onclick="return
> confirm('Are you sure you want to delete?');">Delete
> 
> 
>
>  >Back | Customer ID: favicon.ico
>
> 
> 
>   CakePHP ::
>href="http://www.cakefoundation.org/pages/copyright/";>© 2006 Cake
> Software Foundation, Inc.
>   
>   
>   
> 
> http://www.cakephp.org/"; target="_blank">
> 
>
> 
>   
> http://validator.w3.org/check?uri=referer";>
> 
> http://jigsaw.w3.org/css-validator/check/referer";>
>  height="15" width="80" />
>   
> 
>
> 
> 
> 
>
>
> >
>

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Model association

2006-05-09 Thread John Anderson
Are you using Cake to define model associations?Looks to me like:Post hasAndBelongsToMany CategoryCategory hasAndBelongsToMany PostSo tables would look like:posts- id- title- bodycategories- id- name - desccategories_posts (HABTM tables are plural of both models, in alphabetical order)post_idcategory_idCheck out http://manual.cakephp.org/chapter/6, especially the "Defining and Querying with hasAndBelongsToMany" section for more info.-- JohnOn May 9, 2006, at 1:36 PM, eDevil wrote:Here's my situation. I have some tables in mysql (posts, comments,categories, post_category etc). I am able to add/edit/delete posts andcategories but I cant associate posts with the categories. I need tohave a list of categories with checkboxes on my Add Posts form so thatI can categorize my posts.This is pretty complex and there's no way I could get this working oncake but i'm sure its possible.Here's my database structure:posts - id - title - bodycategories - id - name - descpost_category - post_id - category_id FOREIGN KEY (post_id) REFERENCES posts (id), FOREIGN KEY (category_id) REFERENCES categories (id)Now how do I get these 3 tables connected?Thanks in advance.Azad

--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---


Re: Model association

2006-05-09 Thread roberts.sean

I'm having a similar problem simply trying to add comments to posts.
I've tried to get a list of comments that would be associated with a
single post by adding

$this->set('comments', $this->Comment->findAll("WHERE post_id =
'$id'"));

to the view() function under posts_controller.php but that line returns
"Fatal error: Call to a member function on a non-object".  I don't
fully understand how to go about viewing and manipulating data like
comments that are fully dependent on posts.  I shouldn't have to set up
individual controllers and views for them because I don't want users to
have to go to /comments to view them.

Can anyone give a little insight into this as well as the original
question?


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Model association

2006-05-09 Thread eDevil

Hello, I'm new to cake and i'm having some trouble getting things done
but i'm sure i'll get used to it once I understand how certain things
work in Cake. The problem i'm having is that I cant associate different
models, like fetching data from 3 different table at the same time with
the help of foreign keys.

Here's my situation. I have some tables in mysql (posts, comments,
categories, post_category etc). I am able to add/edit/delete posts and
categories but I cant associate posts with the categories. I need to
have a list of categories with checkboxes on my Add Posts form so that
I can categorize my posts.

This is pretty complex and there's no way I could get this working on
cake but i'm sure its possible.
Here's my database structure:

posts
 - id
 - title
 - body

categories
 - id
 - name
 - desc

post_category
 - post_id
 - category_id
 FOREIGN KEY (post_id) REFERENCES posts (id),
 FOREIGN KEY (category_id) REFERENCES categories (id)

Now how do I get these 3 tables connected?

Thanks in advance.
Azad


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Session issue

2006-05-09 Thread [EMAIL PROTECTED]

Here it is man:

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml";>

CakePHP : A Rapid Development Framework :: Projects








Registered Projects



Id
Project
 


1


Geran BR
8.0
Delete


2


Geran BR
9.0
Delete



Back | Customer ID: favicon.ico



  CakePHP ::
  http://www.cakefoundation.org/pages/copyright/";>© 2006 Cake
Software Foundation, Inc.
  
  
  

http://www.cakephp.org/"; target="_blank">



  
http://validator.w3.org/check?uri=referer";>

http://jigsaw.w3.org/css-validator/check/referer";>

  







--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: beforeFilter

2006-05-09 Thread roberts.sean

Wrap your entire before filter in

if (in_array($this->action, array('protected', 'actions', 'here'))) 
{
}


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



beforeFilter

2006-05-09 Thread Pierre

Hello,

Is there any cakephp equivalent to the rails-fashionned "only" and
"except" parameters for beforeFilter? I'd like to protect some parts of
my controllers thanks to beforeFilter, but I don't want to check for
permissions for every controller action.

Good evening,

Pierre


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: What kind of code is appropriate for a view?

2006-05-09 Thread 100rk

function beforeFilter()
{
parent::beforeFilter();
$this->set('USER_LOGGED_IN', $this->Session->check('User.id'));
}

in Your controller (or in Your AppController - for whole application)
could works fine.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Need help passing "id" between controllers

2006-05-09 Thread Dusty

John,
Yes it is making it that far !!
As I showed in my 1st post
http://10.1.39.52/maxmympg/vlogs/add/4
is what is seen in the browser URL.
The problem seems to be from what you told
me is that the "4" is not getting passed to the
vlogs_controller "add" action when the /vlogs/add
page is viewed or submitted.  I have checked everything
I know to check and am not sure what to investigate
from here.  I will paste the appropriate code from "vehicles"
index.thtml,
the vlogs_controller, and vlogs add.thtml below.  If you
or anyone else has the time it would be appreciated
if they could sift through it and show me the errors of my ways.
Or possibly give me other avenues to investigate.


- from the vehicles/index.html this creates a button that points to
 /vlogs/add/$id !! --


 formTag('/vlogs/add/'.$vehicle['Vehicle']['id'],'post')?>
 Submit('Add Log') ?>
   


- This is my vlogs "add.thtml" view !!
--

Add Log

formTag('/vlogs/add/)?>




tagErrorMsg('Vlog/odometer_reading', 'Odometer
Reading is required.')  ?>
Odometer: input('Vlog/odometer_reading',
array('size'=>'30'))  ?>



tagErrorMsg('Vlog/mpg', 'Miles per Gallon is
required.')  ?>
MPG: input('Vlog/mpg', array('size'=>'30'))  ?>



tagErrorMsg('Vlog/additives', 'Additives is Not is
required.')  ?>
Additives: input('Vlog/additives',
array('size'=>'40'))  ?>



tagErrorMsg('Vlog/conditions', 'Conditions not is
required.')  ?>
Conditions: input('Vlog/conditions',
array('size'=>'80'))  ?>



tagErrorMsg('Vlog/notes', 'Notes are Not required.')
 ?>
Comments:
textarea('Vlog/notes',array('columns'=>'5','rows'=>'10'))  ?>



submit('Save')  ?>




 This is my VlogsController add action
!! --

function add($id)
{
if (empty($this->params['data']))
{
$this->render();
}
else
{
$this->params['data']['Vlog']['vehicle_id'] = $id  ;

$this->Output->filter($this->params['data']);
$this->Sanitize->cleanArray($this->params['data']);

if ($this->Vlog->save($this->params['data']))
{
$this->flash('Your log has been 
saved.','/vlogs');
}
else
{
$this->set('data', $this->params['data']);
$this->render();
}
}
}

--Any help is appreciated.  I am very NEW to cakePHP
--thanx


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Session issue

2006-05-09 Thread John Zimmerman [gmail]
When your page is rendered view the HTML source in your web browser.Send us that code so we can see where things are getting printed out too.On 5/9/06, 
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Well it's in the default app/webroot directory.How can I see my document root?

--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---


Re: What kind of code is appropriate for a view?

2006-05-09 Thread gwoo

of course, John actually meant to use
$this->controller->Session->check('User.id');
not empty($_SESSION['uid']

An element is also a nice to for a check like this.

happy baking.

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Session issue

2006-05-09 Thread [EMAIL PROTECTED]

Well it's in the default app/webroot directory.

How can I see my document root?


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: What kind of code is appropriate for a view?

2006-05-09 Thread John Anderson

I wouldn't balk too much at something like


Logout


in a view.

Just my opinion though. I mean I guess you could put something in the  
controller that would tell the view if you're logged in or not (which  
I *would* do if you're checking login status more than once in a  
page), but I don't know if it makes much of a difference if you're  
only checking once.

: /

-- John

On May 9, 2006, at 10:52 AM, roberts.sean wrote:

>
> I'm working on extending the blog tutorial a bit and part of it was
> rolling out a user auth system.  This was actually quite a bit easier
> than I expected, and I've even set it up so that one only needs to be
> logged in to add, delete, or edit posts.
>
> So my question is this: I'd like for a logout button to appear on the
> list of posts, but obviously only if someone is logged in.  Would  
> it be
> considered too much business-logic for a view to do a conditional to
> check if the user is logged in before displaying the logout  
> button?  If
> so, what would be the best way to display a logout button only under
> the condition that someone is logged in.  It seems silly to me to
> define a whole separate view for logged in users just to make one  
> small
> change... especially if I was dealing with a complex view and  
> needed to
> make changes!
>
> Any suggestions/ideas/affirmations?  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
-~--~~~~--~~--~--~---



Re: Two select menu in one form?

2006-05-09 Thread [EMAIL PROTECTED]

Oh thanks! I was expecting you to suggest me Ajax use...well can you
suggest me any good Ajax help to do this?


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



What kind of code is appropriate for a view?

2006-05-09 Thread roberts.sean

I'm working on extending the blog tutorial a bit and part of it was
rolling out a user auth system.  This was actually quite a bit easier
than I expected, and I've even set it up so that one only needs to be
logged in to add, delete, or edit posts.

So my question is this: I'd like for a logout button to appear on the
list of posts, but obviously only if someone is logged in.  Would it be
considered too much business-logic for a view to do a conditional to
check if the user is logged in before displaying the logout button?  If
so, what would be the best way to display a logout button only under
the condition that someone is logged in.  It seems silly to me to
define a whole separate view for logged in users just to make one small
change... especially if I was dealing with a complex view and needed to
make changes!

Any suggestions/ideas/affirmations?  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
-~--~~~~--~~--~--~---



Re: Scaffold: How to draw a SELECT OPTION for a filed having parent_id with the same Table

2006-05-09 Thread clemos

hi

it's not a problem with mysql itself (otherwise, it would return
something like "unable to connect")
I'm no expert (and all this depends on the way you 'upgraded' php4 to
php5), but maybe it comes from a wrong setup of php5.
in php.ini (the one for php5), in the extension (module) section I
have had to uncomment (or add, I don't remember) :
extension=php_mysql.dll
maybe it's particular for me (because I run php5 as a cgi, still php4
by default), but I think mysql was "built in" php4, not php5,
something like that.

anyway, it's OT ;)

++
clemos

On 5/9/06, Spark <[EMAIL PROTECTED]> wrote:
>
>  i tried it last night, and I got this message:
>
>   _  _  ___  _  _ ___ ___   _  _ 
> ||__| |_/  |___ |__] |__| |__]|__] |__| |_/  |___
> |___ |  | | \_ |___ ||  | |   |__] |  | | \_ |___
> ---
> [M]odel
> [C]ontroller
> [V]iew
>
> Please select a class to Bake: (M/V/C)
> > m
> ---
> Model Bake:
> ---
>
> Fatal error: Call to undefined function mysql_connect() in
> D:\webroot\cake\cake\libs\model\dbo\dbo_mysql.php on line 116
>
>
>  I'm running winXP, easyphp 1.8 , upgraded everything (php 5, mysql 5,
> phpmyadmin, etc), and i'm NOT running mysql as a service. is it
> essencial ? mysql is also on the Path.
>
>
>  thank you
>  spark!
>
> On 5/9/06, Mika <[EMAIL PROTECTED]> wrote:
> >
> > What response did you get?
> >
> >
> > >
> >
>
>
> --
> [web] http://synapsisdi.com.br
> [livesets] http://djspark.com.br
>
> >
>

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Need help passing "id" between controllers

2006-05-09 Thread John Anderson

What URL are you trying to access?

Does your form action have the ID in it?

 ..

?

-- John

On May 9, 2006, at 9:47 AM, Dusty wrote:

>
> John,
>
> Thanks for the help !!  Basically I have already tried that
> and for some reason I get the warning "missing argument for add()
> in /vlogs_controller.php.  So I must be doing something wrong
> or not have something set up correctly.  For some reason it doesn't
> see the $id variable being passed to it.  I have pasted the code for
> the
> vlogs_controller.php below.  If I un-comment the line:
>  //$this->params['data']['Vlog']['vehicle_id'] = '2'  ;
> everything works ok and a record is inserted with the vehicle id =  
> "2".
>
>   function add($id)
>   {
>   if (empty($this->params['data']))
>   {
>   $this->render();
>   }
>   else
>   {
>   $this->params['data']['Vlog']['vehicle_id'] = $id  ;
>   //$this->params['data']['Vlog']['vehicle_id'] = '2'  ;
>
>   $this->Output->filter($this->params['data']);
>   $this->Sanitize->cleanArray($this->params['data']);
>
>   if ($this->Vlog->save($this->params['data']))
>   {
>   $this->flash('Your log has been 
> saved.','/vlogs');
>   }
>   else
>   {
>   $this->set('data', $this->params['data']);
>   $this->render();
>   }
>   }
>   }
>
> --thanx again
> --dusty
>
>
> >


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Need help passing "id" between controllers

2006-05-09 Thread Dusty

John,

Thanks for the help !!  Basically I have already tried that
and for some reason I get the warning "missing argument for add()
in /vlogs_controller.php.  So I must be doing something wrong
or not have something set up correctly.  For some reason it doesn't
see the $id variable being passed to it.  I have pasted the code for
the
vlogs_controller.php below.  If I un-comment the line:
 //$this->params['data']['Vlog']['vehicle_id'] = '2'  ;
everything works ok and a record is inserted with the vehicle id = "2".

function add($id)
{
if (empty($this->params['data']))
{
$this->render();
}
else
{
$this->params['data']['Vlog']['vehicle_id'] = $id  ;
//$this->params['data']['Vlog']['vehicle_id'] = '2'  ;

$this->Output->filter($this->params['data']);
$this->Sanitize->cleanArray($this->params['data']);

if ($this->Vlog->save($this->params['data']))
{
$this->flash('Your log has been 
saved.','/vlogs');
}
else
{
$this->set('data', $this->params['data']);
$this->render();
}
}
}

--thanx again
--dusty


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Newbie problems

2006-05-09 Thread tinmar

I found the problem : i use cake under windows and then i can't see the
error message .
This day i try to install cake under debian and it's ok i can see the
error message .
Perhaps it's due to easyphp , i don' t now exactly .
thanx to BoBB
Tinmar


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Need help passing "id" between controllers

2006-05-09 Thread John Anderson
On May 9, 2006, at 9:05 AM, Dusty wrote:The problem is that the vlogs page knows nothingabout the "4".  All of my relationships in my models andcontrollers and tables is correct I believe.How do I tell the "vlogs" model the right "vehicle_id"top insert the record with.  What is the correct "cake"way of doing this ??In your VlogsController, you should have an add function. It should look something like this:class VlogsController extends AppController{	function add($id)	{		//make sure you have the $id parameter - this is where you can use the ID passed in by the URL		// so calling /vlogs/add/23 would mean that $id = 23 at this point.	}}?>Basically:/controller/action/var1/var2/var3 callsController::action('var1', 'var2', 'var3');Hope that helps.-- John
--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---



Need help passing "id" between controllers

2006-05-09 Thread Dusty

Hello,

I need a little help with a simple application
I am building.  I already have most of it done
except that I cannot figure out how to pass the
right "id" from one model to another.  I have
a model "vehicles" which has a hasMany relationship
with a model "vlogs".  The model "vlogs" also has a
belongsTo relationship with the model "vehicles".
When the user logs in he is taken to the vehicles
index page which lists his vehicles.  From there he can
either edit or add another vehicle but I also want him
to be able to insert a "log" for a vehicle.  Since I know
the "id" of each vehicle from this page I have a link
for each vehicle which should allow the user to add
a log to the vehicle he choses.  The "log" link from
the vehicles page has the form:
link('Add
Log',"/vlogs/add/{$vehicle['Vehicle']['id']}") ?>
and the acual link winds up having the form:
http://10.1.39.52/maxmympg/vlogs/add/4 with the "4"
being the "vehicle_id" needed for inserting into the "vlogs"
table.  The problem is that the vlogs page knows nothing
about the "4".  All of my relationships in my models and
controllers and tables is correct I believe.
How do I tell the "vlogs" model the right "vehicle_id"
top insert the record with.  What is the correct "cake"
way of doing this ??

Any help would be appreciated.

--thanx
--dusty


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Cake Install on subdomain

2006-05-09 Thread [EMAIL PROTECTED]

Linux - Fedora Core 4
Apache 2.0.54
MySQL 4.1.16
PHP Version 5.0.4
--
phpMyAdmin - 2.8.0.3
Mod Rewrite is on
Allow Overrides is set to All

I've learned this stuff over the last 5-years by doing, sort of the
organic method, so I'll admit there are glaring gaps in my knowledge,
compared to someone who is actually trained at this, but I do generally
muddle through.

I'd like to know if its possible to have cakePHP installed on a
subdomain and accessible from a number of domains that all live on a
single. I have several client accounts, as well as several of our own
sites and I'd like to make Cake available to them all from a central
point without having to edit Apache config files..

Assuming that its possible to do that - For my ZGHDesign.com once I
create the subdomain the top level looks like this -

subdomains/cake/cgi-bin
subdomains/cake/conf
subdomains/cake/error_docs
subdomains/cake/httpdocs
subdomains/cake/httpsdocs

When I go to the URL cake.zghdesign.com I get a blank screen (Firefox
1.5.x - latest update on Mac OS X) Where does Cake get installed? At
this level or in httpdocs?

If installed at this level, how do I access it?

How do I access it in any case from another domain, or am I limited to
accessing it from the parent domain?

Thanks,

Clifford VanMeter
Interactive Director
ZGH Design


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: How to change layout for plugins errors

2006-05-09 Thread Logan

Thanks Felix. I'll try both and let you know. ;)


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: admin routes and passwords

2006-05-09 Thread Martin

You "only" use the admin route to gather administrativ actions under a
common base URL. It has nothing to do with authentication it is all
about URL translation.

To set authentication you still need to do that in the controllers and
actions just like you would do without the admin route. If you don't
have one built into your app yet you could check out cakeForge and the
snippets library. There are a few different login managers there.

A simple one is this othAuth from the snippets:
http://cakeforge.org/snippet/detail.php?type=snippet&id=38

I have used User Management mysef as a base for a small project:
http://cakeforge.org/projects/usermgmt/


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



admin routes and passwords

2006-05-09 Thread Spark

 hya,

 Is there any way to the admin routes use passwords ?
 I mean... it's great to have this so simply set on the controler, and
everything. But if I can't set a password to it, it's not that useful,
is it ?
 Using .htaccess , maybe ?


--
[web] http://synapsisdi.com.br
[livesets] http://djspark.com.br

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Scaffold: How to draw a SELECT OPTION for a filed having parent_id with the same Table

2006-05-09 Thread Spark

 i tried it last night, and I got this message:

  _  _  ___  _  _ ___ ___   _  _ 
||__| |_/  |___ |__] |__| |__]|__] |__| |_/  |___
|___ |  | | \_ |___ ||  | |   |__] |  | | \_ |___
---
[M]odel
[C]ontroller
[V]iew

Please select a class to Bake: (M/V/C)
> m
---
Model Bake:
---

Fatal error: Call to undefined function mysql_connect() in
D:\webroot\cake\cake\libs\model\dbo\dbo_mysql.php on line 116


 I'm running winXP, easyphp 1.8 , upgraded everything (php 5, mysql 5,
phpmyadmin, etc), and i'm NOT running mysql as a service. is it
essencial ? mysql is also on the Path.


 thank you
 spark!

On 5/9/06, Mika <[EMAIL PROTECTED]> wrote:
>
> What response did you get?
>
>
> >
>


--
[web] http://synapsisdi.com.br
[livesets] http://djspark.com.br

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: can't make module rewrite works

2006-05-09 Thread Fernando

I restart my server... I think that is vertrigo problemn

hydra12 escreveu:
> After uncommenting the load module for mod_rewrite, you have to restart
> the service for apache to get the changes to httpd.conf.  I forgot to
> do that once, and couldn't figure out what was wrong . . .
>
>
> >
>   

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: can't make module rewrite works

2006-05-09 Thread hydra12

After uncommenting the load module for mod_rewrite, you have to restart
the service for apache to get the changes to httpd.conf.  I forgot to
do that once, and couldn't figure out what was wrong . . .


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: How to change layout for plugins errors

2006-05-09 Thread the_undefined

Hey Logan,

alright it seems like there are a couple of new ways to do this since
the last time I checked.

One of them is to put a create a file app/error.php that will be your
own ErrorHandler for all CakePHP errors. Checkout cake/libs/errors.php
if you need to know how this needs to look. You can also extend the
file there and only change some things for it.

For the project I'm doing right now (not working with plugins), I need
to load the Menu from a database, also when an error is rendered. Right
now I'm using the following solution to make all of my stuff inside
AppController execute for this:

http://cakephp.org/pastes/show/fc1d05b03ef263eab5dca2bf49b59b40

It should be the same process for doing it to themes and stuff.

Now there is another cool method you can use, which is to create a
function inside your AppController called apperror. If such a function
exists, error handling will be passed to this function. Then you need
to do $this->constructClasses() in order to get a fully workable
AppController (means, Models, Components, etc. get loaded).

The second approach is much shorter, but it also means that you don't
get the pretty cakephp errors anymore. So for debugging reasons I went
with the code in CakeBin above for now. But I might put something like
this in AppController:

class AppController extends Controller
{
   if (DEBUG>0)
   {
function apperror($method, $messages)
{
   // Display User friendly error messages in here.
Maybe offer search feature for controllerMissing.
]

   }
}

I've not tested the code above, but I hope it would be valid ; ).

bye, Felix
PS: Let me know if that helped you out.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: MVC 101? Please forgive this really basic question

2006-05-09 Thread Armando Sosa
Calzone: CakePHP is so user friendly that it doesn't require to understand how everything works to start programming. Just follow the conventions and you are done.Now, if you really want to know how everything is working under the hood then is necessary that you know PHP programming basics. 
When I started using cake, like 6 month ago, I didn't know anything about OOP or MVC and barely could write spaghetti code in PHP. I've follow the tutorials (the documentation was really bad back on those days) and start developing personal Cake apps in a week or less.
But I was as curious as you are to understand what makes Cake work, but instead of asking millions of questions to the list I've done the two thing that have been doing all my life: Investigate and Experiment.
Investigate: I've read many OOP and MVC articles on the net, passed hours & hours looking to the API and the Code, when I saw a function that I couldn't understand the I Googled it. Maybe happens that I'm antisocial but I don't like to ask too often.
Experiment: The more essential way of experimenting is messing with the tutorials. The thought process is like: "Ok, I have it running, now let's change something and see what happens". If you keep experimenting you could expand the blog tutorial to have comments, RSS, admin section, trackback... I know it because I did it. 
It was someway painfull, but I learned a lot in the process. When I can't get something to work then I got back to Experimenting Mode.I like to help when I can. It's easy to say "change that var" or "use this function" or "Here's a code snippet that has helped me" but there are concepts that simply can't be answered in a maillist post. If you want to go deeper you have to investigate and experiment first. I've followed this aproach and now, six months later, I have been hired for my first CakePHP-based project.
Whew! This has to be the biggest english chunk of text I've written. Ever.-- Armando Sosawww.nolimit-studio.com
www.dospuntocero.info

--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---


Re: can't make module rewrite works

2006-05-09 Thread Fernando


Options FollowSymLinks
AllowOverride All


it's all

Mika escreveu:
> Also make sure thay AllowOverride is not None.
>
>
> >
>   

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: can't make module rewrite works

2006-05-09 Thread Mika

Also make sure thay AllowOverride is not None.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Scaffold: How to draw a SELECT OPTION for a filed having parent_id with the same Table

2006-05-09 Thread Mika

What response did you get?


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



can't make module rewrite works

2006-05-09 Thread Fernando

Can't make module rewrite works on VERTRIGO SERV.
I just uncomment the #load module..
but still not works...



--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Adding and removing HABTM items?

2006-05-09 Thread Martin

Hi,
I am stuck on something that is very simple in concept but I just can't
get it to work right.

I have a HABTM relationship where I want an action to simply add or
remove links between items. Not delete the "real" records themselves
but in SQL terms: just add/remove a line in the linking table. (Like
users and premissions, authors and articles or as in this case users
and projects)

I really don't want to surrender and just insert some homegrown SQL to
find the row and delete it or add it if that is the case.

Problem is I can't find any suitable Model method for this and I
haven't figured out exactly how to do it with Model->save() or set().
Since the action is pretty much "/user/add_project/1" (or the reverse)
so there is no form with lots of data in it for a "normal" save. I have
started trying to load up all the model instances and reworking them
into an array that looks like the ones used in when saving but it will
result in a lot of for loops and array trickery... that is probably why
I am stuck.

So my question (finaly!...) is if there is any really efficient way to
do this kind of action? What would be a "best practice" for adding and
dropping single associations?


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Scaffold: How to draw a SELECT OPTION for a filed having parent_id with the same Table

2006-05-09 Thread Kotekar

Hi Mika,

It seems to be broken, it didn't worked.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



generateList with two fields.

2006-05-09 Thread zis

Hi,
I need to make a select box with name of people. I need it to show
(Last name, First Name). In the databsase, i have two fields,
first_name and last_name.

I need to retrieve the data for a select box. I know i can do it with
findall but i'dd rather do it with generatelist. the problem is i can't
seem to find how to make generatelist get more than one field. Is there
a way to do it?

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
-~--~~~~--~~--~--~---



Re: Two select menu in one form?

2006-05-09 Thread zis

I think the best solution is using ajax. When a customer is selected,
call a function to retrieve the assessments with the customer id and
display them in a new box.

Of course you could do it without ajax by adding a condition before
save() to rerender the view with an assesment box.. but it's less
elegent and takes longer.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Session issue

2006-05-09 Thread Larry E. Masters aka PhpNut
Ok so, the favicon.ico location is not the problem because I neverchanged roots.
Is the favicon.ico in your DOCUMENT ROOT?

-- 
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access  public
*/ 

--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---


Re: Session issue

2006-05-09 Thread [EMAIL PROTECTED]

Ok so, the favicon.ico location is not the problem because I never
changed roots.

I'm using Windows XP Home, Mozilla Firefox latest version and CakePHP
cake_1.0.1.2708.

Here's the code:

1) this is the controller of customers, the first page I access

Session->renew();
$this->set('data',$this->Customer->findAll());
}
function add()
{
if (empty($this->params['data']))
{
$this->render();
}
else
{
if ($this->Customer->save($this->params['data']))
{
$this->flash('Customer added.','/customers');
}
}
}
function destroy($id)
{
if ($this->Customer->del($id, $cascade=true))
{
$this->flash('Customer has been destroyed.', '/customers');
}
}
}

?>

2) this is the code of assessments controller, I access this one after
I selected a customer and $id is passed via URL

Session->write('Customers.id',$id);

$this->set('data',$this->Assessment->findAllByCustomerId($id));
}

function add()
{

$this->set('customers',$this->Assessment->Customer->generateList());

if (empty($this->params['data']))
{
$this->render();
}
else
{
if ($this->Assessment->save($this->params['data']))
{
$this->flash('Assessment added.','/customers');
}
}
}
function destroy($id)
{
if ($this->Assessment->del($id, $cascade=true))
{
$this->flash('Assessment has been destroyed.',
'/customers');
}
}
}

?>

3) this is the code from project controller. I access the projects page
after I selected an assessment so $id is passed via URL and is the id
of an assessment

set('data',$this->Project->findAllByAssessmentId($id));
}

function add()
{
$c_id = $this->Session->read('Customers.id');

$this->set('customer',$this->Project->Assessment->Customer->findAllById($c_id));

$this->set('assessment',$this->Project->Assessment->generateList());

if (empty($this->params['data']))
{
$this->render();
}
else
{
if ($this->Project->save($this->params['data']))
{
$this->flash('Project added.','/customers');
}
}
}
function destroy($id)
{
if ($this->Project->del($id, $cascade=true))
{
$this->flash('Project has been destroyed.', '/customers');
}
}
}

?>

4) Now I should have saved the Customer ID into the session because
when I want to add a new project I NEED to know the customer to which
it will depend. Here's the view of the INDEX of projects: the print of
the value stored in the session is only for debugging purposes:

Registered Projects


Id
Project
 





link( $project['Project']['name'],
"/projects/index/{$project['Project']['id']}" ); ?>

link('Delete',"/projects/destroy/{$project['Project']['id']}",
null, "Are you sure you want to delete?")?>





link("Back", "/customers/index");
?> | controller->Session->read('Customers.id'); ?>

this problem is driving me mad...


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Session issue

2006-05-09 Thread Larry E. Masters aka PhpNut
The problem is that when I need to read the "Customers.id
" value I geta strange text: "favicon.ico". How can I avoid that?Thanks to all for the help!Try adding the favicon.ico to your DOCUMENT ROOT.

There is one in the app/webroot/ copy it to your DOCUMENT ROOT



If you have DOCUMENT ROOT set to app/webroot this should not be an issue.



-- 

/**

* @author Larry E. Masters

* @var string $userName

* @param string $realName

* @returns string aka PhpNut

* @access  public

*/

--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---


Re: Session issue

2006-05-09 Thread hydra12

What operating system are you using?  What version of cake?  Could you
post the code for your view?


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Two select menu in one form?

2006-05-09 Thread [EMAIL PROTECTED]

My problem now is that: I have a class that defines users and users are
linked to assessments via a foreign key assessment_id. An assessment,
is linked to a customer via a foreign key customer_id; now the
challenge is that when I'm creating the "add.thtml" view to insert a
new customer I'll have 2 select menus from where I'll select the
customer and then the assessment. But, how can I make them "dependent",
I mean, how can I make something that when I select a customer from the
first one it fills the second with the assessments of that customer?

Thanks in advance!


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Session issue

2006-05-09 Thread [EMAIL PROTECTED]

Hi.

Well, @AD7six: yes, in the view file I set the instruction to print the
number stored in the session but when I open it with the browser it
doesn't print the number but 'favicon.ico'

And to hydra12: well everything works well and I'm pretty sure also
because the system works well without the sessions; I'll need sessions
in future development.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Session issue

2006-05-09 Thread AD7six

Hi Alberto,

>> And nothing...I get always that "favicon.ico".

What exactly does this mean?

Are you saying that
 ... rest of file ...
in your view file outputs
favicon.ico ... rest of file ...

?

AD7six


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Session issue

2006-05-09 Thread hydra12

Try this (for testing purposes):

function index($id='1')
{
//$_SESSION['Customers.id'] = $id;

$this->set('data',$this->Assessment->findAllByCustomerId($id));
}

Obviously, you'd replace the '1' in the function def with an id you
know is valid.  See if everything else works without the session.  This
way, you'll know if the problem is a weird session issue, or if there
is something else going on.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Session issue

2006-05-09 Thread [EMAIL PROTECTED]

Yes, I tried the method you suggested me too...this is a big issue for
me because I need to use sessions.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Scaffold: How to draw a SELECT OPTION for a filed having parent_id with the same Table

2006-05-09 Thread Mika

sorry that was supposed to be  bake.php was broken.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Scaffold: How to draw a SELECT OPTION for a filed having parent_id with the same Table

2006-05-09 Thread Mika

Well if you're using the latest build (because build.php was pretty
broken for a while) you can go to your /cake/scripts directory and run
"php bake.php" from there. This is assuming that you have the path to
your php.exe in your path environment variable.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Scaffold: How to draw a SELECT OPTION for a filed having parent_id with the same Table

2006-05-09 Thread Kotekar

Hey thanks, the links which you provided helps lot and i had small
doubt with the tutorilas which i gone through.

While creating the Controllers, they have used the command line like
"php bake.php -app bakery"

it ask some set of question builds fully created file with the
functions.
Can we run these commands in Windows? how?

Cheers
Raghava Kotekar


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



wanted: RoR programmers

2006-05-09 Thread peachy

Pandora Squared - Web 2.0 and Business Consulting
(http://www.pandorasquared.com)

Pandora Squared is one of the leading companies focused on Web 2.0 and
Social Networks. We are a multi-national organization with offices in
San Francisco, Sydney and Manila. We are seeking for passionate
individuals who are eager to face the challenges of the next Web
Revolution. We are currently expanding and we need programmers willing
to stay for some time in Manila, Philippines. If you have the passion
to seek for new challenges, come and join us now! Send your resume to
[EMAIL PROTECTED]

Job Openings:

Ruby on Rails Programmers (3) - for people with RoR experience
- 5 years experience in web application development
- 2+ completed projects with Ruby on Rails
- Ajax experience with Prototype
- Knowledge of Rails Engines
- Database design with MySQL
- Understanding of intermediate/advanced SQL
- Experience working in version control with Subversion
- Experience working on small agile teams
- Preferably with experience building social networking applications
- Deploying large-scale websites

Ruby on Rails Trainees (7) - for individuals eager to learn RoR
- 1+ years experience in web application development using Java or PHP
- Experience with MySQL
- Experience working on small agile teams
- Preferably with experience building social networking applications

Graphic Designers (3) - for creative people working on web design
- 5+ years experience in creative web design
- Expert in Photoshop, Fireworx, Illustrator and Dreamweaver
- Familiar with javascript and dynamic HTML
- Experience working on small agile teams
- Preferably with experience building social networking applications

see http://www.pandorasquared.com/pages/careers


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



$this->log error.log location

2006-05-09 Thread aelf

I'm a new cake (1.0.1) user and have been trying out the tutorials etc,
it all looks good so far.

The problem I've had is with the $this->log() function. I was getting
permissions errors about creating the file wherever the function was
called.
I'm using Apache2 on Ubuntu, and the function tries to create the
error.log file in the root directory of the file system (/error.log). I
let it do it once and it worked, but obviously this isn't really a good
place for the log to be - is there a setting somewhere I can change?

Cheers.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---