Re: First bite?I am trying

2007-03-04 Thread stefuNz

i think you'll need PHP 4 or PHP 5 .. PHP3 doesn't seem to work...

stefan

On 4 Mrz., 05:36, SIXS [EMAIL PROTECTED] wrote:
 I have WAMP that includes Apache2.2.4, PHP 3.2.1, and mysql 5.0.27. and
 cake_1.1.13.4450. I downloaded the zip file and extracted to the C root in
 win XP Pro.
 Isn't that a good combination. I can run RADRails and other software.
 Jim

 - Original Message -
 From: Jon M. [EMAIL PROTECTED]
 To: Cake PHP cake-php@googlegroups.com
 Sent: Saturday, March 03, 2007 7:51 PM
 Subject: Re: First bite?I am trying

  What web server software are you running on your localhost? Seems you
  might have not placed the cake directory in the right place .. I am
  just assuming that and I could be wrong :) .

  On Mar 3, 6:02 pm, SIXS [EMAIL PROTECTED] wrote:
  Hi,
  I am trying cakePHP and using first bite. I get the first screen and also
  get the screen to say that I have connected with mysql database. I then
  put in the model and controller  in c\cake\app\model and
  c:\cake\app\controller\ and try to locate it with
  thehttp://localhost/notes/Iget 404 .error I do not see wher the scaffold
  is executed either.
  What gives I see another tutorial Managing fantesy football and I get to
  the scaffold sttement and am confused with add, (crud) as I don't see any
  files created?

  Thanks
  Jim


--~--~-~--~~~---~--~~
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: ajax editor and view

2007-03-04 Thread gwoo

this should work too. In AppController or any other Controller.
Remember to include RequestHandler in your components array.

functon beforeRender() {
if($this-RequestHandler-isAjax() || $this-RequestHandler-
isXml()) {
Configure::write('debug', 0);
}
}


--~--~-~--~~~---~--~~
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: First bite?I am trying

2007-03-04 Thread gwoo

If it is a Cake 404 error message then, make sure DEBUG  0. look in /
app/config/core.php
If it is an apache 404 error message, then your server is not
configured.

http://manual.cakephp.org/chapters/installing has more info.

Scaffolding does not create any files. But it does provide an inteface
for basic CRUD.
If you want to generate the files you need to use Bake.

Also, check out : IBM Developer Works. They have some more recent
articles.
http://www-128.ibm.com/developerworks/views/opensource/libraryview.jsp?topic_by=All+topics+and+related+productssort_order=asclcl_sort_order=descsearch_by=cook+web+sites+CakePHPsearch_flag=truetype_by=All+Typesshow_abstract=truestart_no=1sort_by=Dateend_no=100show_all=false


--~--~-~--~~~---~--~~
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: Pure Flex

2007-03-04 Thread gwoo

actually, this is the most recent article: http://cakeamfphp.rd11.org/
;)


--~--~-~--~~~---~--~~
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: cakephp on godaddy

2007-03-04 Thread gwoo

what is the missing file? Sounds less to do with godaddy and the
subdomain, and more to do with the code in your controller.


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



placing methods in appcontroller so as to reduce the code redundancy

2007-03-04 Thread rockanj


I have many controllers those have similar code. The difference in the
codes among them is the name, fieldnames in the DB etc. What I've been
doing right now is, I have created one controller. Then i create the
next controller, copy and paste the code from the first controller and
find and replace the name of the controller, modelname, fieldname etc.
I have done the same thing to other controllers as well. The methods
like add, edit, index etc are common to all controller.

What I want to do is to reduce the code. i.e I want a code to be
placed somewhere and that will be used by all the controllers. How can
I do that? Will it be helpful by placing the code in appcontroller ?
If so, tell me how can I do 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?hl=en
-~--~~~~--~~--~--~---



Re: placing methods in appcontroller so as to reduce the code redundancy

2007-03-04 Thread clemos

hi

 What I want to do is to reduce the code. i.e I want a code to be
 placed somewhere and that will be used by all the controllers. How can
 I do that? Will it be helpful by placing the code in appcontroller ?
 If so, tell me how can I do it...

yes, this is exactly what the cake/app_controller.php file is made for.
put your common controller methods in this empty class (AppController).

you can make common model methods, as well, in cake/app_model.php.
it's maybe even more appropriate to what you describe, because you can
use AppModel's properties like $table, $name, etc to make methods
which will work for all models.
(and also because I think that in MVC, SQL stuff should rather be
handled by the models)

hope it helps
+++
clemos

--~--~-~--~~~---~--~~
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: Lightbox + Cake

2007-03-04 Thread lukemack

Hi - I wouls be interested to know which lightbox script you are
using?

On Mar 4, 12:42 am, Sam Sherlock [EMAIL PROTECTED] wrote:
   I have managed to get lightbox working in cake but had to set these
  lines in
   a scriptblock in a layout .thtml /.ctp

 yep .  In a scriptblock in a layout view such as default.thtml for example

 On 04/03/07, Mech7 [EMAIL PROTECTED] wrote:



  Yes that would be possible but no php acces in javascript files :( do
  you move this to the head of your document instead ?

  On Mar 3, 10:43 pm, Sam Sherlock [EMAIL PROTECTED] wrote:
   are the troublesome lines these:

   var webRoot = ?php e($this-webroot); ?;

   var fileLoadingImage = webRoot . /img/loading.gif;

   var fileBottomNavCloseImage = webRoot . /img/closelabel.gif;

   I have managed to get lightbox working in cake but had to set these
  lines in
   a scriptblock in a layout .thtml /.ctp

   On 03/03/07, phirschybar [EMAIL PROTECTED] wrote:

hmm. not sure I understand what you mean. Can you give an example?

On Mar 3, 1:32 pm, Mech7 [EMAIL PROTECTED] wrote:
 Well the problem is when it is in a subdir then this does not work,
 since you need the subdir in front of it, but when it changed you
  need
 to edit them manual again :(

 On Mar 3, 6:21 pm, phirschybar [EMAIL PROTECTED] wrote:

  if you prepend the image path with a '/' like '/img/...' it will
  trace
  back to the web document root and hit the right directory every
  time.

  So wherever you see images/ in the .js file, change it to /img or
  whatever you want.

  On Mar 3, 12:11 pm, Mech7 [EMAIL PROTECTED] wrote:

   The problem is it does not work like css where it links relative
from
   the file, but instead it writes html via dom in the document
  when
   needed.. so the path will link from a different directory
  depeding
on
   which controller or page i am on :(

   On Mar 3, 6:06 pm, Grant Cox [EMAIL PROTECTED] wrote:

If you put the lightbox images in the js folder (where your
lightbox.js is) then they should work.  A bit messy perhaps,
  but
otherwise just edit the javascript file yourself to point to
  the
correct location (ie ../img/ )


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



problem with $html-lilnk

2007-03-04 Thread Ámon Tamás

Hello,

I used bake.php to making views, and I have a lot of
?php echo $html-link('View', array('action'='view', 
$category['Category']['id'])); ?
line in my index.ctp
But when I try to use in the browser I get the following link (for this 
for example)

a href=//categories/view/1View/a

this is a wrong linkbecause it is started with 2 /

how can I solve this problem? I using the  Nightly Builds.

Thanks.
-- 
Ámon Tamás
http://linkfelho.amon.hu


--~--~-~--~~~---~--~~
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: ajax editor and view

2007-03-04 Thread phirschybar

gwoo's method is the way to go. I wouldn't recommend editing the
webroot/index.php

On Mar 4, 4:23 am, gwoo [EMAIL PROTECTED] wrote:
 this should work too. In AppController or any other Controller.
 Remember to include RequestHandler in your components array.

 functon beforeRender() {
 if($this-RequestHandler-isAjax() || $this-RequestHandler-isXml()) {

 Configure::write('debug', 0);
 }

 }


--~--~-~--~~~---~--~~
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: placing methods in appcontroller so as to reduce the code redundancy

2007-03-04 Thread jitka

If You need some functionality in ALL controllers, then put this code
to AppController - copy file cake/app_controller.php to app directory
and put those methods to class AppController inside of file app/
app_controller.php

BUT: if not every controller of Your application is supposed to have
this functionality, You can consider use component, ie file app/
controllers/components/common.php with class CommonComponent extends
Object {
var $controller = null;

function startup($controller) {
$this-controller = $controller;
}

function something($xyz) {
$name = $this-controller-name;


}
}

and then in Your controllers
var $components = array('Common');

with usage inside of controller action like
$this-Common-something($blabla);


--~--~-~--~~~---~--~~
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: Lightbox + Cake

2007-03-04 Thread Sam Sherlock
from Lokesh Huddled together.

{scriptblock}
// vars with paths here
{/scriptblock}
{scrriptsrc}source files for llightbox{/scrriptsrc}



On 04/03/07, lukemack [EMAIL PROTECTED] wrote:


 Hi - I wouls be interested to know which lightbox script you are
 using?

 On Mar 4, 12:42 am, Sam Sherlock [EMAIL PROTECTED] wrote:
I have managed to get lightbox working in cake but had to set these
   lines in
a scriptblock in a layout .thtml /.ctp
 
  yep .  In a scriptblock in a layout view such as default.thtml for
 example
 
  On 04/03/07, Mech7 [EMAIL PROTECTED] wrote:
 
 
 
   Yes that would be possible but no php acces in javascript files :( do
   you move this to the head of your document instead ?
 
   On Mar 3, 10:43 pm, Sam Sherlock [EMAIL PROTECTED] wrote:
are the troublesome lines these:
 
var webRoot = ?php e($this-webroot); ?;
 
var fileLoadingImage = webRoot . /img/loading.gif;
 
var fileBottomNavCloseImage = webRoot . /img/closelabel.gif;
 
I have managed to get lightbox working in cake but had to set these
   lines in
a scriptblock in a layout .thtml /.ctp
 
On 03/03/07, phirschybar [EMAIL PROTECTED] wrote:
 
 hmm. not sure I understand what you mean. Can you give an example?
 
 On Mar 3, 1:32 pm, Mech7 [EMAIL PROTECTED] wrote:
  Well the problem is when it is in a subdir then this does not
 work,
  since you need the subdir in front of it, but when it changed
 you
   need
  to edit them manual again :(
 
  On Mar 3, 6:21 pm, phirschybar [EMAIL PROTECTED] wrote:
 
   if you prepend the image path with a '/' like '/img/...' it
 will
   trace
   back to the web document root and hit the right directory
 every
   time.
 
   So wherever you see images/ in the .js file, change it to /img
 or
   whatever you want.
 
   On Mar 3, 12:11 pm, Mech7 [EMAIL PROTECTED] wrote:
 
The problem is it does not work like css where it links
 relative
 from
the file, but instead it writes html via dom in the document
   when
needed.. so the path will link from a different directory
   depeding
 on
which controller or page i am on :(
 
On Mar 3, 6:06 pm, Grant Cox [EMAIL PROTECTED] wrote:
 
 If you put the lightbox images in the js folder (where
 your
 lightbox.js is) then they should work.  A bit messy
 perhaps,
   but
 otherwise just edit the javascript file yourself to point
 to
   the
 correct location (ie ../img/ )


 


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



dateTimeSelect defaults to current date instead of 00-00-0000

2007-03-04 Thread jyrgen

when i choose no date and leave the select fields blank,
the helper defaults to the current date.

how can i avoid this ?

thank you

jyrgen


--~--~-~--~~~---~--~~
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: dateTimeSelect defaults to current date instead of 00-00-0000

2007-03-04 Thread jyrgen

i inserted

if ($selected==--) $selected = -00-00;

to fix 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?hl=en
-~--~~~~--~~--~--~---



Re: cakephp on godaddy

2007-03-04 Thread Michael Rubanov
Actually the missing component is in place .

I found that problem is connected to godaddy's freaky mod_rewrite/htacces
setup.
When I turning of mod_rewrite support i core.php I got a app working but
dispatcher showing an errors.

When mod_rewrite future is on , I am getting 500 errors on all
controllers...

I had a similar problem with wordpress plugins development , when I tried to
define additional rewrite rules via worpress hook , which is working
excellent in development environment but not on godaddy's hosting...


On 3/4/07, gwoo [EMAIL PROTECTED] wrote:


 what is the missing file? Sounds less to do with godaddy and the
 subdomain, and more to do with the code in your controller.


 



-- 
Best Regards,

Michael Rubanov.
##  ICQ 7299656  ##

--~--~-~--~~~---~--~~
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: dateTimeSelect defaults to current date instead of 00-00-0000

2007-03-04 Thread jyrgen

i placed

if ($selected==--) $selected = -00-00;

into

function dateTimeOptionTag

of

/cake/libs/view/helpers/html.php

to fix 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?hl=en
-~--~~~~--~~--~--~---



Re: cakephp on godaddy

2007-03-04 Thread Sam Sherlock
What happens when mod rewrite is off and your using internal rewrite?

On 04/03/07, Michael Rubanov [EMAIL PROTECTED] wrote:

 Actually the missing component is in place .

 I found that problem is connected to godaddy's freaky mod_rewrite/htacces
 setup.
 When I turning of mod_rewrite support i core.php I got a app working but
 dispatcher showing an errors.

 When mod_rewrite future is on , I am getting 500 errors on all
 controllers...

 I had a similar problem with wordpress plugins development , when I tried
 to define additional rewrite rules via worpress hook , which is working
 excellent in development environment but not on godaddy's hosting...


 On 3/4/07, gwoo [EMAIL PROTECTED] wrote:
 
 
  what is the missing file? Sounds less to do with godaddy and the
  subdomain, and more to do with the code in your controller.
 
 
 


 --
 Best Regards,

 Michael Rubanov.
 ##  ICQ 7299656  ##

 


--~--~-~--~~~---~--~~
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: ajax editor and view

2007-03-04 Thread Samuel DeVore

On 3/4/07, phirschybar [EMAIL PROTECTED] wrote:

 gwoo's method is the way to go. I wouldn't recommend editing the
 webroot/index.php

The only reason, I don't mind editing my index.php file is because I
only do it on my dev machine ;)  in production I have debug set to 0
so it's not an issue ;)

Sam D

--~--~-~--~~~---~--~~
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: problem with $html-lilnk

2007-03-04 Thread gwoo

if you are using 1.2 alpha keep in mind that this may not be the best
place to submit problems. As you already see a day or two can make a
difference with this version. It would be great if you could make it
to IRC when you find little issues like this. I would rather see the
list be a place for questions regarding features and the API, instead
of seeing it become a place for bug reports. There is a development
site for bugs. https://trac.cakephp.org. We do not follow the list all
the time so your bug reports may go unanswered.


--~--~-~--~~~---~--~~
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: Need help with less trivial associations

2007-03-04 Thread barduck

Thanks for the response.

The groups_units association is needed because there are units that
don't belong to any department but only to groups.

I assume the example you gave is for cake 1.2 ? I am using 1.1 and
can't find that Set::extract in the API. I will try and figure out how
to do this in 1.1, unless someone can offer help with the 1.1
equivalent.

Also, what would be the best place to put this code assuming I want
every Unit to have the full list of unique groups once the Unit model
is read from the database?

Thanks.


On Mar 4, 2:06 am, Grant Cox [EMAIL PROTECTED] wrote:
 Well, I would scrap the groups_units HABTM association, as it isn't
 really a direct association.  You can't add/remove those associations
 directly, so it's really just a symptom of the main Group -
 Department - Units association.

 Now, to get the associated group ids from a unit, have something like:

 $this-Unit-recursive = 2; // get the Departments, and the
 Departments' Groups
 $unit = $this-Unit-read(null, $unit_id);
 $group_ids = Set::extract($unit, 'Department.{n}.Group.{n}.id';
 $unique_group_ids = array_keys(array_flip($group_ids));


--~--~-~--~~~---~--~~
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: cakephp on godaddy

2007-03-04 Thread Michael Rubanov
Hey Sam ,

1. To enable internal rewrite I uncommented:
define ('BASE_URL', env('SCRIPT_NAME'));

In godaddy hosting env('SCRIPT_NAME') equals to 0...
Do I have to define it manually ?
What url do I put there ?
The sub domain url ?

2. After internal rewrite is on , I getting dispatcher errors :

*Warning*: preg_replace(): Unknown modifier 'a' in *dispatcher.php* on line
*487

*Sam do you have some idea ?**


On 3/4/07, Sam Sherlock [EMAIL PROTECTED] wrote:

 What happens when mod rewrite is off and your using internal rewrite?

 On 04/03/07, Michael Rubanov [EMAIL PROTECTED]  wrote:
 
  Actually the missing component is in place .
 
  I found that problem is connected to godaddy's freaky
  mod_rewrite/htacces setup.
  When I turning of mod_rewrite support i core.php I got a app working but
  dispatcher showing an errors.
 
  When mod_rewrite future is on , I am getting 500 errors on all
  controllers...
 
  I had a similar problem with wordpress plugins development , when I
  tried to define additional rewrite rules via worpress hook , which is
  working excellent in development environment but not on godaddy's hosting...
 
 
 
  On 3/4/07, gwoo [EMAIL PROTECTED]  wrote:
  
  
   what is the missing file? Sounds less to do with godaddy and the
   subdomain, and more to do with the code in your controller.
  
  
  
 
 
  --
  Best Regards,
 
  Michael Rubanov.
  ##  ICQ 7299656  ##
 
 
 

 



-- 
Best Regards,

Michael Rubanov.

--~--~-~--~~~---~--~~
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: cakephp on godaddy

2007-03-04 Thread Sam Sherlock
My Idea was:

1) To see if cakePHP can work using internal rewrite - I think you need to
delete the .htaccess

Now if this works, you may have to settle for using cakePHP without mod
rewrite - but at least its working

A month or so ago I was having troubles with 1and1 and mod_rewrite - not
exactly parallel, but a few similarities

GoDaddy is a not a host I have familiarity with  but I believe  its a mass
budget shared hosting service like 1and1.  Therefore they have config'd the
servers to alleviate some issues

In my case the support staff were no help at all, PaulIV on this list put me
in the right direction

Not saying that this is a solution that will work for you but it may be of
help.

- S

On 04/03/07, Michael Rubanov [EMAIL PROTECTED] wrote:

 Hey Sam ,

 1. To enable internal rewrite I uncommented:
 define ('BASE_URL', env('SCRIPT_NAME'));

 In godaddy hosting env('SCRIPT_NAME') equals to 0...
 Do I have to define it manually ?
 What url do I put there ?
 The sub domain url ?

 2. After internal rewrite is on , I getting dispatcher errors :

 *Warning*: preg_replace(): Unknown modifier 'a' in *dispatcher.php* on
 line *487

 *Sam do you have some idea ?**


 On 3/4/07, Sam Sherlock  [EMAIL PROTECTED]  wrote:
 
  What happens when mod rewrite is off and your using internal rewrite?
 
  On 04/03/07, Michael Rubanov [EMAIL PROTECTED]  wrote:
  
   Actually the missing component is in place .
  
   I found that problem is connected to godaddy's freaky
   mod_rewrite/htacces setup.
   When I turning of mod_rewrite support i core.php I got a app working
   but dispatcher showing an errors.
  
   When mod_rewrite future is on , I am getting 500 errors on all
   controllers...
  
   I had a similar problem with wordpress plugins development , when I
   tried to define additional rewrite rules via worpress hook , which is
   working excellent in development environment but not on godaddy's 
   hosting...
  
  
  
   On 3/4/07, gwoo [EMAIL PROTECTED]  wrote:
   
   
what is the missing file? Sounds less to do with godaddy and the
subdomain, and more to do with the code in your controller.
   
   
   
  
  
   --
   Best Regards,
  
   Michael Rubanov.
   ##  ICQ 7299656  ##
  
  
  
 
 
 


 --
 Best Regards,

 Michael Rubanov.
 


--~--~-~--~~~---~--~~
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: [C] cakephp on godaddy

2007-03-04 Thread TekJansen



Michael Rubanov wrote:
 
 When mod_rewrite future is on , I am getting 500 errors on all
 controllers...
 

Do these errors go away if you manually append a trailing slash to the url?

I have just started with cakephp and the first thing I did was throw the
completed tutorial up onto my godaddy shared linux hosting account to make
sure it would work. I got the same errors you describe until I noticed that
they worked perfectly with a trailing slash. I have found some references
online to the trailing slash problem but no definitive solution.

I have simply gotten used to adding the trailing slash in code and
everything works fine.
e.g.,
?php echo $html-link($movie['Movie']['title'],
/movies/detail/{$movie['Movie']['id']}); ?
becomes
?php echo $html-link($movie['Movie']['title'],
/movies/detail/{$movie['Movie']['id']}/); ?

I don't know if this is the best solution, but it seems to be working so
far.

edit: sorry if this is a duplicate message, I don't think I was a member of
the group for my first attempted reply.
-- 
View this message in context: 
http://www.nabble.com/cakephp-on-godaddy-tf3340227.html#a9299935
Sent from the CakePHP mailing list archive at Nabble.com.


--~--~-~--~~~---~--~~
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: [C] cakephp on godaddy

2007-03-04 Thread Michael Rubanov
Hm...no that does not help.
Did you installed your app on subdomain ?

On 3/4/07, TekJansen [EMAIL PROTECTED] wrote:




 Michael Rubanov wrote:
 
  When mod_rewrite future is on , I am getting 500 errors on all
  controllers...
 

 Do these errors go away if you manually append a trailing slash to the
 url?

 I have just started with cakephp and the first thing I did was throw the
 completed tutorial up onto my godaddy shared linux hosting account to make
 sure it would work. I got the same errors you describe until I noticed
 that
 they worked perfectly with a trailing slash. I have found some references
 online to the trailing slash problem but no definitive solution.

 I have simply gotten used to adding the trailing slash in code and
 everything works fine.
 e.g.,
 ?php echo $html-link($movie['Movie']['title'],
 /movies/detail/{$movie['Movie']['id']}); ?
 becomes
 ?php echo $html-link($movie['Movie']['title'],
 /movies/detail/{$movie['Movie']['id']}/); ?

 I don't know if this is the best solution, but it seems to be working so
 far.

 edit: sorry if this is a duplicate message, I don't think I was a member
 of
 the group for my first attempted reply.
 --
 View this message in context:
 http://www.nabble.com/cakephp-on-godaddy-tf3340227.html#a9299935
 Sent from the CakePHP mailing list archive at Nabble.com.


 



-- 
Best Regards,

Michael Rubanov.

--~--~-~--~~~---~--~~
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: [C] cakephp on godaddy

2007-03-04 Thread TekJansen



Michael Rubanov wrote:
 
 Hm...no that does not help.
 Did you installed your app on subdomain ?
 

No, I just put it in a subdirectory for a quick test. It is certainly not a
production install.

Some other ideas (from godaddy's php faqs):
1. For security reasons, we [godaddy] run PHP as a CGI and not as a
module. I'm not sure what this means or if it's relevant.
2. I think by default *.php runs as php4 and *.php5 runs as php5. This can
be changed with some .htaccess rules if you're running hosting
configuration 2.0.

Sorry, I'm not really a php guy at all, so I'm not much help.
-- 
View this message in context: 
http://www.nabble.com/cakephp-on-godaddy-tf3340227.html#a9300470
Sent from the CakePHP mailing list archive at Nabble.com.


--~--~-~--~~~---~--~~
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: INSERT into databases

2007-03-04 Thread Adrian Maier

On 3/2/07, Chris Hartjes [EMAIL PROTECTED] wrote:

 On 2/27/07, Felix St. Bernard [EMAIL PROTECTED] wrote:
  That was enough said Don't you think? I understand how queries like
  his may upset you but keep your frustrations to yourself. You could
  have also just made reference to the recent post CakePHP IRC and
  GoogleGroup Etiquette Suggestions which may help this newby not repeat
  what he just did. And that would be a whole lot less rude on your part.
  If you can't do that then save yourself some typing time and just not
  reply. Everyone has to start somewhere. Have a nice day.
 
  FSB

 I guess you could've saved yourself some typing time as well and not
 replied to me either, eh Felix? The younger version of me would've
 taken great offense at you've said, telling me I don't have a right to
 be frustrated and to not express myself.  After all, you're expressing
 your frustrations and opinions.  I'd like to think I'm allowed to do
 the same.

 Anyway, here's my point:  rude dickheads like myself are needed on a
 mailing list such as this one to remind people that there are certain
 rules to be followed, and one of those are to not expect people giving
 up their own free time (unless there are some very lucky people on
 this list who get paid to work on CakePHP) to provide with all the
 answers so you can just cut-and-paste without learning anything.  I'm
 100% positive I'm not the only one on this mailing list who feels this
 way, I'm just one of the few who actually says it out loud...er on the
 mailing list.

 I'm all for helping people who are at least TRYING to learn something.
 Asking such a broad-based question as the one that started this
 thread means the person hasn't even bothered to do a shred of
 research.

 So, Mani, I highly suggest you search through the manual, look at the
 blog tutorial, and search the google groups archive for this mailing
 list.  If the answer isn't in there, then I'm sure someone (hey, it
 might even be me) will be more than happy to answer your question.
 I'm not such a bad guy, honest.

 Give someone code, they learn nothing.  Teach them why their code
 isn't working and they'll learn something.

It is true that Mani's question was probably a frequent one, and that the
answer can be found in the Models chapter of the CakePHP manual.

But, sorry Chrys , your initial reaction was too harsh. I read this
thread again
and I am not convinced at all that Mani really meant that others should
write code for him , for free .


-- 
Adrian Maier

--~--~-~--~~~---~--~~
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: Please help me understand URL and Routes in Cake

2007-03-04 Thread bernardo

For sort and filter you can certainly use query string parameters.
Have you tried that? I don't think you will any problem there.

For the problem of passing multiple units you don't need to use a
special separator, cakephp will pass anything matched by * as
additional arguments to your controller function.
For example if you have
$Route-connect('/units/*', array('controller' = 'units', 'action'
='view'));

you can use

function view() {
$sort = $_GET['sort'];
$units = func_get_args();
...

On Mar 4, 4:27 pm, barduck [EMAIL PROTECTED] wrote:
 No one?

 Surely someone can offer some additional insights on this.

 Thanks.

 On Mar 1, 10:44 am, barduck  wrote:

  Thanks for the reply.

  I think I have better understanding of the Route functionality now.

  I am still not sure I understand the full potential of regular
  expressions in Route. I mean, I see how I can specify a regex in the
  matching part of the Route-connect() but in mod rewrite, I can use
  regular expression both in the matching and the substitutions part of
  the URL (the groups from the match can be used in the rewritten URL,
  using (...) in the pattern and $N in the substitution), can something
  like this be done in Route?

  I assume the colon is one way to do this, but does colon-param pattern
  always needs to come surrounded by slashes (/)? What about the
  asterisk I used in my route, how come it isn't being confused with the
  meaning of asterisk in regex?

  I am also not sure what is the best way to achieve what I described in
  my original post. One possible solution is to define one big parameter
  and parse it myself in my code using a delimiter I set.

  So I set unit1+unit2+unit3... as one big parameter and separate it in
  code myself by the plus signs. Then I set a Route rule to detect plus
  signs before the normal unit view match. I think this will work also
  for the parameters to the index view but I wonder if this is the right
  way to do this and whether cake can do it automatically for me?

  Thanks.

  - barduck

  On Feb 28, 5:54 pm, Chris Lamb [EMAIL PROTECTED] wrote:

I understand that Cake does [routing] this in two phases, one
using apache mod rewrite to pass the rest of the path to cake and the
second one by Routes to further route the URL in cake internally. Is
this correct?

   Yes.

I assume that the major purpose of the Routes is to map URLs to
controllers, functions and parameters.

   Correct.

1. I've seen a colon (:) used in the manual in routes config (like /
blog/:action/* ). What is the special meaning of the colon? It isn't
mentioned anywhere.

   They are to control the parameters that are passed to the Controller.
   I think the syntax is a Ruby-ism. First, the general case. If your
   route is:

 /blog/:spam/*

   then if the browser requested

 /blog/eggs/

   then $this-params['spam'] would contain the value 'eggs'. You can have
   more than one in the route. For example:

 /blog/:year/:month/:day/:slug/*

   gets you something like the default WordPress blog link structure.
   There are two 'magic' parameters, controller and action which, when
   set, decide which controller or action to call respectively. For
   example, the route:

 /blog/:action/:spam

   when called with:

 /blog/view/eggs/

   will call the view action with $this-params['spam'] set to eggs.

2. Can I use regular expressions in Routes like on mod rewrite? How?
The manual doesn't mention it.

   Just use regular Perl-compatible regexs.

3. Can I still use URL query string parameters using ? ? Or does
cake only use the /controller/action/param/param... convention?

   Cake has a different method of handling query string parameters. My
   advice is to construct a controller action to display $this-params and
   see how they are handled.

Hope I am making myself clear. Sorry for the long message.

   Hopefully someone else can help with the rest if the above does not
   help you solve the problem yourself. Note that the CakePHP source is
   very readable for a PHP program, so examining the dispatcher code may
   make sense than any of this.

   Best wishes,

   --
Chris Lamb, Leamington Spa, UKGPG: 0x634F9A20

signature.asc
   1KDownload


--~--~-~--~~~---~--~~
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: cakephp on godaddy

2007-03-04 Thread [EMAIL PROTECTED]

I know this isn't much help... but my suggestion is to use not use
godaddy for hosting! I still have most of my domains registered though
godaddy (too much trouble to move them all), but their hosting is very
restrictive.

I have been using www.1and1.com (linux business account)  for nearly 2
years, without a single complaint.

-their prices are unbeatable
-their customer service is adequate (I've only had to use it
once)
-and cakePHP works great (php4 and/or php5)

As someone said, it is mass budget hosting, so don't expect personal
service.

I had to make one change to the .htaccess file to get cake to work
properly:
Change this:
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
To this:
RewriteRule ^(.*)$ /index.php?url=$1 [QSA,L]

gl,
cook


--~--~-~--~~~---~--~~
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: basic.php:line 867 - cache - Warning: file_put_contents

2007-03-04 Thread Langdon Stevenson

Hi jyrgen

Cake needs these folders to write cache files to.  Are you sure that the 
web server on your production machine can write to that directory? 
Perhaps have a look in the web server's logs and see if that can give 
you some more information about the problem the server is having.  It 
sounds very much like a permissions issue to me.

Regards,
Langdon


jyrgen wrote:
 Since i deployed the app from my local machine to a real webserver,
 cake expects an /app/tmp folder (as well as some subfolders for
 models).
 
 i created /app/tmp with chmod 777, but no improvement.
 
 Whats about this caching behaviour, is it normal for a new install ?
 (it never occurred on my dev machine)
 
 thanks for your thoughts

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



Change layout for othAuth

2007-03-04 Thread bingo

Hi

I am creating a bookmarklet which points to a web form and I want to
keep it simple. However, users needs to login before the form can be
displayed. Hence, I would like to set layout for othAuth to ajax. I
know I can do it but not sure how I am not sure at what point of
time ajax makes sure that the method is for registered users or not..

any help will be appreciated..

regards,
bingo


--~--~-~--~~~---~--~~
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: Inflections problem?

2007-03-04 Thread Adrian Maier

On 3/2/07, Petry [EMAIL PROTECTED] wrote:

 Hi people,

 I'm a brazilian developer an I have a problem with singular and plural
 rules:

 The word Noticia the plural form is Noticias (words ending by
 ia, the plural form is ias)
 The word Album the plural form is Albuns (words ending by m, the
 plural form is ns)

 Well for these cases, I've create in inflections.php two rules:

 $pluralRules = array('/(.*)m$/i' = '\1ns', '/(.*)ia$/i' = '\1ias');

 $singularRules = array('/(.*)ns$/i' = '\1m','/(.*)ias$/i' = '\1a');

 but when I create the MVC files with bake, for the word Noticia,
 bake writes Noticium

 Why can i fix this problem?

I think that, apart from the rules that you specify,  there are also some
default rules.For example,  i've noticed that  'data' is turned
into 'datum' ,
which is very similar to what happens to your 'noticia'--'noticium'.
I might be mistaken (becuse i'm a newbie and have very little understanding
on the CakePHP internals) but : probably the inflector is using the first rule
it finds , and for 'noticia' it happens to apply some default rule
instead of the
one that you've specified.

Have you tried to add to irregularPlurals 'noticia'='noticias' ?   The words
defined this way are supposed to bypass the rules.


-- 
Adrian Maier

--~--~-~--~~~---~--~~
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: cakephp on godaddy

2007-03-04 Thread Michael Rubanov
You right in both cases :)
After my support experiences and all rewrite problems I will not use godaddy
in next projects.
Your suggestion about RewriteRule ^(.*)$ /index.php?url=$1 [QSA,L] is right
!!!

It's working , thank you very much !!!

On 3/4/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


 I know this isn't much help... but my suggestion is to use not use
 godaddy for hosting! I still have most of my domains registered though
 godaddy (too much trouble to move them all), but their hosting is very
 restrictive.

 I have been using www.1and1.com (linux business account)  for nearly 2
 years, without a single complaint.

 -their prices are unbeatable
 -their customer service is adequate (I've only had to use it
 once)
 -and cakePHP works great (php4 and/or php5)

 As someone said, it is mass budget hosting, so don't expect personal
 service.

 I had to make one change to the .htaccess file to get cake to work
 properly:
 Change this:
 RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
 To this:
 RewriteRule ^(.*)$ /index.php?url=$1 [QSA,L]

 gl,
 cook


 



-- 
Best Regards,

Michael Rubanov.

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



Using Session helper in a custom helper

2007-03-04 Thread Langdon Stevenson

I am making a custom helper that needs access to session data and to the 
Html helper.  Following the manual's instructions I am including

   var $helpers

in my new helper like this:


   class SecureHtmlHelper extends Helper {
  var $helpers = array('Html', 'Session');
 function link($title, $url) {
$actionAcoList = $session-read('ActionAcoList');
if (in_array($url, $actionAcoList)) {
return $html-link($title, $url);
 }
  }
   }


I also have Session and Html helpers included in the parent controller 
along with my new helper.

When I call my new helper I get the following error:


Fatal error: Call to a member function on a non-object in 
/home/web_servers/prototype/dev/app/views/helpers/secure_html.php on line 5


If I remove the Session related code then I get a similar error for the 
Html helper.  Having followed the manual's instructions I am at a bit of 
a loss.

There is a thread in the group on the same topic, but without a clear 
resolution:

http://groups.google.com/group/cake-php/browse_thread/thread/72fc5c592d40fe7e/

Does anyone have a suggestion as to why this may be happening?

Regards,
Langdon



--~--~-~--~~~---~--~~
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: Using Session helper in a custom helper

2007-03-04 Thread AD7six



On Mar 4, 11:38 pm, Langdon Stevenson [EMAIL PROTECTED]
wrote:
 I am making a custom helper that needs access to session data and to the
 Html helper.  Following the manual's instructions I am including

var $helpers

 in my new helper like this:

class SecureHtmlHelper extends Helper {
   var $helpers = array('Html', 'Session');
  function link($title, $url) {
 $actionAcoList = $session-read('ActionAcoList');

$this-Session-read

hth,

AD


--~--~-~--~~~---~--~~
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: basic.php:line 867 - cache - Warning: file_put_contents

2007-03-04 Thread jyrgen

hello langdon,

one of six (one for each model) PHP errors:

Warning: file_put_contents(/is/htdocs/wp1064875_RPHN67AJ8J/www/app/tmp/
cache/models/default_authors) [function.file-put-contents]: failed to
open stream: No such file or directory in /is/htdocs/
wp1064875_RPHN67AJ8J/www/cake/basics.php on line 867

Apache Error Log
[Sun Mar 04 23:44:02 2007] [error] [client 211.91.52.13] File does not
exist: /tos/htdocs/89345_JFDGHJD/www/cake/app

app/tmp is writeable,

do i have to create the subdirectories in it as well ?

thanks, jy.


--~--~-~--~~~---~--~~
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: basic.php:line 867 - cache - Warning: file_put_contents

2007-03-04 Thread AD7six



On Mar 4, 11:47 pm, jyrgen [EMAIL PROTECTED] wrote:
 hello langdon,

 one of six (one for each model) PHP errors:

 Warning: file_put_contents(/is/htdocs/wp1064875_RPHN67AJ8J/www/app/tmp/
 cache/models/default_authors) [function.file-put-contents]: failed to
 open stream: No such file or directory in /is/htdocs/
 wp1064875_RPHN67AJ8J/www/cake/basics.php on line 867

 Apache Error Log
 [Sun Mar 04 23:44:02 2007] [error] [client 211.91.52.13] File does not
 exist: /tos/htdocs/89345_JFDGHJD/www/cake/app

 app/tmp is writeable,

 do i have to create the subdirectories in it as well ?

Do they come in the cake source ;)?

HTH,

AD


--~--~-~--~~~---~--~~
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: Using Session helper in a custom helper

2007-03-04 Thread Langdon Stevenson

Thanks AD, fooling mistake on my part.

Langdon

--~--~-~--~~~---~--~~
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: basic.php:line 867 - cache - Warning: file_put_contents

2007-03-04 Thread jyrgen

no it's ok :-)

hello langdon,

one of six (one for each model) PHP errors:

Warning: file_put_contents(/tos/htdocs/89345_JFDGHJD/www/app/tmp/
cache/models/default_authors) [function.file-put-contents]: failed to
open stream: No such file or directory in /tos/htdocs/89345_JFDGHJD/
www/cake/basics.php on line 867

Apache Error Log
[Sun Mar 04 23:44:02 2007] [error] [client 211.91.52.13] File does not
exist: /tos/htdocs/89345_JFDGHJD/www/cake/app

app/tmp is writeable,

do i have to create the subdirectories in it as well ?

thanks, jy.

 Do they come in the cake source ;)?

 HTH,

 AD


--~--~-~--~~~---~--~~
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: basic.php:line 867 - cache - Warning: file_put_contents

2007-03-04 Thread jyrgen

maybe i should mention that the code is coming from php4 (dev)
to php5 (prod)... ?


--~--~-~--~~~---~--~~
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: basic.php:line 867 - cache - Warning: file_put_contents

2007-03-04 Thread Larry E. Masters aka PhpNut
Your ftp client or tool you used to unzip did not create the empty
directories in tmp like it should.
Check the settings of your client and make sure that it will create the
empty directories, then chmod tmp/ and all sub directories

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

On 3/4/07, jyrgen [EMAIL PROTECTED] wrote:


 maybe i should mention that the code is coming from php4 (dev)
 to php5 (prod)... ?


 


--~--~-~--~~~---~--~~
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: basic.php:line 867 - cache - Warning: file_put_contents

2007-03-04 Thread Samuel DeVore

couple of comments,

you do need to make all the folders that should be in /app/tmp

like https://trac.cakephp.org/browser/branches/1.1.x.x/app/tmp  to see
all the folders you need.  After you make them make sure that the
perms are still set right.  Related but useful to remember is that
many, many archive expansion packages do not create empty folders by
default, this trips a lot of people up because it causes a huge number
of people to not have the tmp folder (not to mention the contained
folders) and a lot of times people trying to help only mention that
one folder and not the ones inside it.  Also many ftp/ upload clients
seem to not want to copy the .htaccess files, so they are often
missing.

About the only thing that has nailed me going from a php4 dev machine
(I know get with the program sdevore you old fart)  to a php5
production environment has been using a reserved word for a controller
or model.  Other then that I (and here I speak only for myself, not
others and certainly not for the trees, I leave that to the Lorax)

Good Luck

Sam D


On 3/4/07, jyrgen [EMAIL PROTECTED] wrote:

 maybe i should mention that the code is coming from php4 (dev)
 to php5 (prod)... ?


 



-- 
==
S. DeVore
(the old fart) the advice is free, the lack of crankiness will cost you

- its a fine line between a real question and an idiot

--~--~-~--~~~---~--~~
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: basic.php:line 867 - cache - Warning: file_put_contents

2007-03-04 Thread jyrgen

Thank u guys,

commandline unzip unpacked the empty folders.
(i guess its the same for gunzip and stuff)

cheers, jyrgen
ps: who is lorax ?



--~--~-~--~~~---~--~~
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: Need help with less trivial associations

2007-03-04 Thread Grant Cox

Well, if you really need the groups_units association then you will
have two associations to manage, and it's probably going to be a pain
to ensure that these are up to date.  You can have callbacks for
afterSave and afterDelete (or is there only beforeDelete?) on the
various models to insert/remove some groups_units, but I don't think
that will be comprehensive.

But once you've got that working, getting the count should be somewhat
simpler - as it's just querying across one join.  You can either do
this  with a manual query, or just do a read() and then count the
associated rows.

If you want fields to be added to every model that is loaded, you need
to do this in the afterFind callback.  Have a look at the second
option I posted in
http://groups.google.com/group/cake-php/browse_thread/thread/f4efae3f1bd46930


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



Render action as string within same controller

2007-03-04 Thread Mikee Freedom

afternoon fellas,

is it possible to render an action to a string from within the same
controller without using requestAction?

Similar in idea to this post :

http://groups.google.com/group/cake-php/browse_thread/thread/a48f7f04d2ba214/161267ef37edee81?lnk=gstq=renderrnum=10#161267ef37edee81

I thought there might be a quicker way than going back to the dispatcher??

I've got various actions performing functions and I was hoping to use
the view as a method of formatting results that I could then record as
a log in my DB or elsewhere.

thanks for your help,
mikee

--~--~-~--~~~---~--~~
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: INSERT into databases

2007-03-04 Thread Chris Hartjes

On 3/4/07, Adrian Maier [EMAIL PROTECTED] wrote:


 It is true that Mani's question was probably a frequent one, and that the
 answer can be found in the Models chapter of the CakePHP manual.

 But, sorry Chrys , your initial reaction was too harsh. I read this
 thread again
 and I am not convinced at all that Mani really meant that others should
 write code for him , for free .


Hey Adrian, thanks for the feedback.  Was I harsh?  Absolutely.  My
point is to make people understand that this help is a two-way street.
 Why should I give away my time for nothing to people who seem to
expect something for nothing?  That is not what open source is
*supposed* to be like, but that is how it often ends up.  I don't mind
helping people.  I  wouldn't do any of the stuff I do in terms of
giving talks at conferences or harassing Nate via IM about stuff for
the interactive console project if I wasn't into helping.

Is my approach the best?  Not if you're easily offended, that's for
sure.  I want people to be able to help THEMSELVES by using the tools
available to them.  I don't expect to be spoon fed my answers, so I
don't believe in just handing people a whack of code and saying
here's your solution, yay for me!

So, Mani, if you haven't run in the opposite direction from the list,
let's talk about breaking down your problem into more manageable
chunks so we can find out exactly what it is you need.

I see two questions;

1) how to get CakePHP models to work with non-standard tables
2) how to do the form stuff Mani is asking about, which I don't
understand exactly what is being asked.  Maybe it's due to my overall
denseness or it's a language thing.

Either way, Mani, you will find the help you need here, you just need
to ask the right questions so the rude assholes like me can give you
the proper answers.

-- 
Chris Hartjes

My motto for 2007:  Just build it, damnit!

rallyhat.com - digital photo scavenger hunt
@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
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: Render action as string within same controller

2007-03-04 Thread Grant Cox

You should be able to execute the action, then wrap a render() call in
an output buffer, something like:

ob_start();
$this-your_action();
$this-render('your_action', 'layout');
$rendered_view = ob_get_clean();

of course, if your action explicitly calls render, don't put it in
there again :)


--~--~-~--~~~---~--~~
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: INSERT into databases

2007-03-04 Thread Dr. Tarique Sani

On 3/5/07, Chris Hartjes [EMAIL PROTECTED] wrote:
 Hey Adrian, thanks for the feedback.  Was I harsh?  Absolutely.  My
 point is to make people understand that this help is a two-way street.

I mostly agree with Chris's approach and his playing the martyr(!?) to
the cause - It is needed to keep the focus on a busy list.

At times the line is too thin... the decision *when* to step on
someone is crucial... and was missed in this case. This was probably
Mani's first post and was slammed harder than most others.

Was this a case of mistaken identity?

Of late I have been seeing too many Indian/Indian sounding names who
come up with these or similar queries My fellow countrymen you
need to change this!! (For the record several Indian FOSS mailing
lists and blogs are having long discussions on the topic since ages)

So before I get completely off topic here - I would say to Chris - keep at it!

Cheers
Tarique

-- 
=
PHP for E-Biz: http://sanisoft.com
Cheesecake-Photoblog: http://cheesecake-photoblog.org
=

--~--~-~--~~~---~--~~
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: OthAuth session disappearing

2007-03-04 Thread Dusty

Okay, so I am not a server expert but all of my problems stem from a
incorrect setting in the php.ini file. Here is a reference to a thread
that was helped me solve it.

http://groups.google.com/group/cake-php/browse_thread/thread/ada15abbf3507645/6c7980ae109fb9e8?lnk=gstq=sessionrnum=3#6c7980ae109fb9e8

I had to set the session.auto_start=1

I hope if anyone sees this it will save them hours of headaches.


--~--~-~--~~~---~--~~
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: Pure Flex

2007-03-04 Thread [EMAIL PROTECTED]

any major differences between the .4 and .5 gateway?

can i easily upgrade?

thnx

On Mar 4, 4:45 am, gwoo [EMAIL PROTECTED] wrote:
 actually, this is the most recent article:http://cakeamfphp.rd11.org/
 ;)


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