Re: help with pagination PRG

2007-05-09 Thread AD7six
On 9 mayo, 03:39, stefano [EMAIL PROTECTED] wrote: Hello I try to do a search over a pagination component i found thishttp://www.noswad.me.uk/Pagination/PRG but i can't download the source any one have this source or some like that ?? thz stefano s. I haven't updated the links yet:

Re: Elements vs requestAction

2007-05-09 Thread AD7six
On 9 mayo, 03:43, Sliv [EMAIL PROTECTED] wrote: I believe from what I've read, that a big reason for not using a series of requestActions is performance. Run a series ofrequestActioncalls and check the speed. Cake Processing

persistModel incompatble with Model behaviours?

2007-05-09 Thread Marcus T. Jaschen
Hello, when I set $persistModel to true in my AppController everything works fine until I try to use Model behaviours (in my case: ExtendAssociationBehaviour; http://bakery.cakephp.org/articles/view/add-delete-habtm-behavior) I get the following error message: Fatal error: Model::findAll()

Re: Database search confusion...

2007-05-09 Thread AD7six
On 8 mayo, 22:44, Stacey [EMAIL PROTECTED] wrote: Andy, The Ajax 'Seeing Double' demo is pretty close to what I'm trying to accomplish. My only question, is it possible to do this with two different sets of data on the same page? Of course, the only reason they are the same is to

Re: Elements vs requestAction

2007-05-09 Thread Tane Piper
I actually like to mix the two. What I find best is to create an element, and put the rA() inside it. Then I can use element caching to speeding things up, and reduce the load. Of course, you may find that when you update data on your site, these elements don't update right away - what you

problem with index page

2007-05-09 Thread [EMAIL PROTECTED]
hi i am new to cakephp , i am facing one problem , i followed the tutorial from http://www.learncake.com/installing-cakephp-and-configuring-mysql/, but am getting an error like this Your database configuration file is present. Fatal error: Call to undefined function mysql_connect() in

Re: Filtering/Searching/Sorting

2007-05-09 Thread AD7six
On 30 abr, 18:47, phpsmitty [EMAIL PROTECTED] wrote: This is similar functionality that the masterbake.php file can bake up but the code it produces is very messy. Seams like a couple include files should be able to dynamically generate this functionality automatically. Hi, You can

how to deal with static pages ,can I routes url to a html page?

2007-05-09 Thread [EMAIL PROTECTED]
how you guys to deal with static pages , can I routes url to a html page,and how? --~--~-~--~~~---~--~~ 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

Disapearing text in IE

2007-05-09 Thread Harro
I have the latest stable release of cake, with no edits to the CSS. But when I use tags such as h2, p ect. in the view files, the text is invisable in IE until you highlight it, but it remains visible once you un-highlight it again. Sites appear fine in FF and Opera. Anyone have any ideas on

get a 404 page

2007-05-09 Thread rocky
Hey list, I followed the tutorial of IBM: Cook Up Websites Fast (5 part series) and got the user registration system up and running successfully. Today I did an database table back up use mysqldump -- add-drop-table xxx command and did some other editing which I forgot. The problem is the when I

Re: Get rid of default header

2007-05-09 Thread rocky
Hey Greg, Thanks very much for your reply! it helps a lot although the location should be in /cake/lib/views/layouts/ Blessings, Rocky On May 8, 4:09 am, Greg Cerveny [EMAIL PROTECTED] wrote: Heyrocky, I had the same question last week. Check out: /app/views/layouts/default.thtml and this

Re: Using an image as the source for a submit button.

2007-05-09 Thread keymaster
Problem might be the cake submit helper hardcodes a 'type' = 'submit',. This is not overridden by the 'image' type you specify in the attributes array. Might be easiest to code the submit button directly in html in this case. --~--~-~--~~~---~--~~ You received

Re: Associations to reduce # of queries

2007-05-09 Thread johnvv
Hmm... ok, I understand setting up the function in the Product model to run the query but I'm confused about the CategoryController. If I try to run: $catProds = $this-Product-getCategoryProducts($categoryId); I get Undefined property: CategoryController::$Product or if I try $catProds =

Re: problem with index page

2007-05-09 Thread djiize
it seems you have not the mysql extension for PHP if you have PHP5, try mysqli instead of mysql in your database conf file On 9 mai, 09:43, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: hi i am new to cakephp , i am facing one problem , i followed the tutorial

Re: Associations to reduce # of queries

2007-05-09 Thread Jon Bennett
Hmm... ok, I understand setting up the function in the Product model to run the query but I'm confused about the CategoryController. If I try to run: $catProds = $this-Category-Product-getCategoryProducts($categoryId); you have to traverse the associations tree back. If you're working within

Re: Disapearing text in IE

2007-05-09 Thread djiize
It's a CSS cause but I don't know exactly where in the file, I always start projects with a blank CSS On 9 mai, 11:01, Harro [EMAIL PROTECTED] wrote: I have the latest stable release of cake, with no edits to the CSS. But when I use tags such as h2, p ect. in the view files, the text is

Re: how to deal with static pages ,can I routes url to a html page?

2007-05-09 Thread djiize
search for Pages controller in the group for short: it's a special controller, you just add .thtml|.ctp files in /app/viws/pages/ folder and they are visible at mysite.com/pages/ file (without extension) On 9 mai, 10:42, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: how you guys to deal with

Re: Get rid of default header

2007-05-09 Thread djiize
Don't edit the files in /cake folders, it's the CORE of Cake, and should never been modified! All your files must be in /app and/or /vendors Create default.ctp in /app/views/layouts/ if not exists And read the manual for layout/view/conventions rules On 9 mai, 11:48, AD7six [EMAIL PROTECTED]

RE: phpGACL installation

2007-05-09 Thread Paul R. Zwiers
Silv, Thanks, so my setup should work. Hmmnz... Which version of phpGACL do you use? Did you have to edit some things manually or just installed the bunch like described here: http://dev.sypad.com/installing-phpgacl-plugin-cakephp TIA Paul I'm using PHP5, MySQL 5 and CakePHP 1.1.14.4797

Re: get a 404 page

2007-05-09 Thread rocky
Hey, http://localhost/cakephpxxx/index.php?url=users would give me the right content but I click on the link of register whose right url was http://localhost/cakephpxxx/users/register and it gives me the 404 page again unless I input http://localhost/cakephpxxx/index.php?url=users/register. It

Cakephp Firefox Redirect Error

2007-05-09 Thread RLR
Hi I have discovered a problem with my app and would like to know if there is a solution... When I browse my app with firefox I get this error regardless of Mac or Pc version (1.5.0.10) The page isn't redirecting properly Firefox has detected that the server is redirecting the request for this

Re: Creating sub module / admin panel

2007-05-09 Thread Floyd
Thank you Hellbot and thank you Tulio :) I solved my doubt. --~--~-~--~~~---~--~~ 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

Books

2007-05-09 Thread mithesh
hi I want to know about the online books available for cake 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

Re: how to deal with static pages ,can I routes url to a html page?

2007-05-09 Thread Hellbot
http://www.avatarfinancial.com/pages/cake/ Quote: I needed to create several pages that didn't use any models and contained static data inside the default layout. My first thought was to create a controller for these pages and define an action for each static page I needed. However, this

Re: Books

2007-05-09 Thread Daniel Hofstetter
The only book I know at the moment is the manual: http://manual.cakephp.org HTH -- Daniel Hofstetter http://cakebaker.42dh.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this

Re: Cakephp Firefox Redirect Error

2007-05-09 Thread AD7six
On 9 mayo, 12:00, RLR [EMAIL PROTECTED] wrote: Hi I have discovered a problem with my app and would like to know if there is a solution... When I browse my app with firefox I get this error regardless of Mac or Pc version (1.5.0.10) The page isn't redirecting properly Firefox has detected

Re: how to build a search helper ?

2007-05-09 Thread AD7six
On 7 mayo, 11:09, wluigi [EMAIL PROTECTED] wrote: I want to build a serch helper that can be used in index action like paginator. This helper should be able to use form data to generate a nice url like with paginator. PS : perhaps the solution isn't a helper. I can't see how to handle

Re: Multiple views inside one Layout

2007-05-09 Thread AD7six
On 7 mayo, 22:06, MauroEC04 [EMAIL PROTECTED] wrote: Hello people! Well. I'm programming a extreme-large portal and using Cake. I need to include several (about 6 to 8) views in a layout (including the 1st page). I can't just use the requestAction() method in the view classes, it would

Re: Cake and alternative installation

2007-05-09 Thread AD7six
On 4 mayo, 17:21, christos [EMAIL PROTECTED] wrote: Trying to figure this out for the past couple of days, and can't get it right. Need a alternative installation so that CAKEPHP can run both httpdocs and httpsdocs directories under Plesk. Plesk 7.5.4 creates for every domain the following

Re: HABTM filtering with a binded hasMany

2007-05-09 Thread AD7six
On 1 mayo, 20:17, bit [EMAIL PROTECTED] wrote: I've reviewed the previous thread that covered HABTM filtering and got it to work:http://groups.google.com/group/cake-php/browse_thread/thread/f23b1825... But if I understand this correctly, using a binded hasOne association would make the

Re: how to build a search helper ?

2007-05-09 Thread wluigi
Thanks it answers all my question. I will look to the code in few days. Thanks again On 9 mai, 13:35, AD7six [EMAIL PROTECTED] wrote: On 7 mayo, 11:09, wluigi [EMAIL PROTECTED] wrote: I want to build a serch helper that can be used in index action like paginator. This helper should

Re: Not sure if this is a Controller or Routing Issue

2007-05-09 Thread AD7six
On 3 mayo, 20:11, rockit [EMAIL PROTECTED] wrote: Let me explain what i have here. I have 2 models, Inventory Photo. I have defined an association that Inventory hasMany Photo. ie. a Car can have many photos. I have the inventoriesController set up and working properly. it contains

Re: Associations to reduce # of queries

2007-05-09 Thread johnvv
Ok, I was able to get around the error messages with this: // CategoryController .. function view($id){ .. loadModel('Product'); $p = new Product(); $this-Product = $p-getProductsByCategory($id, $start, $limit, $sort); pr($this); $this-set('category', $this-Category-read()); }

Cache Viewer: An idea for developers of CakePHP

2007-05-09 Thread bingo
hello bakers (especially developers of CakePHP) I proposing an idea for cakephp. Is it possible to develop a Cache Viewer to see what is cached. The viewer can be flexible to show session variables as well as cookie variables. I am not aware of any such functionality in cake PHP or in some other

Re: Disapearing text in IE

2007-05-09 Thread Harro
Thanks djiize, I found what was causing the issue. Its the float:left command on line 195 of cake.generic.css Found in app/webroot/css Incase anyone else has the same problem. ;) Thanks, Harro. On May 9, 11:52 am, djiize [EMAIL PROTECTED] wrote: It's a CSS cause but I don't know exactly

Printing in PHP

2007-05-09 Thread RB
Hi, How to send a report information directly to a printer ( dot matrix printer ) ? The report page has been developed using PHP,mySql and Javascript. What I want is that, in the report page, there will be a link print. On clicking the link, the printing of the report will start directly. Also

Re: Printing in PHP

2007-05-09 Thread Chris Hartjes
On 5/9/07, RB [EMAIL PROTECTED] wrote: Hi, How to send a report information directly to a printer ( dot matrix printer ) ? The report page has been developed using PHP,mySql and Javascript. What I want is that, in the report page, there will be a link print. On clicking the link, the

Re: phpGACL installation

2007-05-09 Thread Sliv
Well, I used PhpGACL 3.3.7 installed into APP_DIR . /vendors/ After extraction, I did have to make a symbolic link to the phpgacl-3.3.7 folder called 'phpgacl' because the plugin was looking for that folder. For the plugin: app_dir . /plugins/phpgacl/ app_dir . /components/php_gacl.php

Re: Printing in PHP

2007-05-09 Thread Sliv
http://www.daniweb.com/techtalkforums/thread15881.html Smithers, release the hounds. On May 9, 9:00 am, Chris Hartjes [EMAIL PROTECTED] wrote: On 5/9/07, RB [EMAIL PROTECTED] wrote: Hi, How to send a report information directly to a printer ( dot matrix printer ) ? The report page

Re: phpGACL installation

2007-05-09 Thread Gonzalo Servat
On 5/9/07, Sliv [EMAIL PROTECTED] wrote: Well, I used PhpGACL 3.3.7 installed into APP_DIR . /vendors/ After extraction, I did have to make a symbolic link to the phpgacl-3.3.7 folder called 'phpgacl' because the plugin was looking for that folder. For the plugin: app_dir .

Re: RSS Import

2007-05-09 Thread sixlaneve
cheers, I'll take a look at it right now On 8 Mag, 01:52, Chris Lamb [EMAIL PROTECTED] wrote: sixlaneve wrote: has anyone tried to import RSS feeds with cakephp? Yes. I recommend using SimplePie[0]. There is a snippet available[1] but that's rather controller-centric. May I suggest

Re: phpGACL installation

2007-05-09 Thread AD7six
On May 9, 3:18 pm, Gonzalo Servat [EMAIL PROTECTED] wrote: On 5/9/07, Sliv [EMAIL PROTECTED] wrote: Well, I used PhpGACL 3.3.7 installed into APP_DIR . /vendors/ After extraction, I did have to make a symbolic link to the phpgacl-3.3.7 folder called 'phpgacl' because the plugin was

RE: phpGACL installation

2007-05-09 Thread Mariano Iglesias
What datasource fix? -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://www.MarianoIglesias.com.ar -Mensaje

RE: Cache Viewer: An idea for developers of CakePHP

2007-05-09 Thread Mariano Iglesias
That could be interesting with the new Cache class, and their engines, in the 1.2 release. Let's hope aakour is monitoring this thread. -MI --- Remember, smart coders answer ten questions for every question they ask. So

RE: phpGACL installation

2007-05-09 Thread Mariano Iglesias
AD7six: can you have your answer posted above the original mail quote? :) Regarding Cheesecake being an application, AD7six has a point. Don't want to piss Tarique off. Regarding plugins (even though Cheesecake is not one AFAIK) Gonzalo has a point. Plugin controllers should be named as unique

Re: phpGACL installation

2007-05-09 Thread Sliv
Mariano: When I installed your plugin, I was running 1.1.14.4797 and got the error described in ticket 2370: http://groups.google.com/group/tickets-cakephp/browse_thread/thread/40546c1950d1d70f/5f9d2360f5e31f95?lnk=gstq=%232370rnum=1#5f9d2360f5e31f95 So I implemented the fix and no problems.

Re: RSS Import

2007-05-09 Thread Siegfried Hirsch
2007/5/9, sixlaneve [EMAIL PROTECTED]: has anyone tried to import RSS feeds with cakephp? yes Yes. I recommend using SimplePie[0]. There is a snippet available[1] but that's rather controller-centric. May I suggest creating a Model to encapsulate the RSS functionality you need. oh yes

RE: phpGACL installation

2007-05-09 Thread Mariano Iglesias
Oh yeah, that's right. Thanks. -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://www.MarianoIglesias.com.ar

cakephp rendering

2007-05-09 Thread [EMAIL PROTECTED]
How to render the same file from controller and view. For example I need to render edit.thtml. Inside controller I do $this-render('edit', 'ajax'); and it works. From view I do $this-render('edit', 'ajax'); and does not work, the ajax links inside the edit.thtml file are not working. My layout

Session variable problem

2007-05-09 Thread admin_AT_loveyourdress.com
is it even remotely posible that when i remove var $helpers = array('Html','Form'); my session read and write works but when i put that in my controller, everytime i write the session variable, it writes something else(randomly) into the session variable (i checked the raw session file) ? But

Re: Elements vs requestAction

2007-05-09 Thread Samuel DeVore
one advantage to using elements is that in 1.2 you can cache them for periods of time thus helping your performance as well On 5/9/07, Tane Piper [EMAIL PROTECTED] wrote: I actually like to mix the two. What I find best is to create an element, and put the rA() inside it. Then I can use

Re: cakephp rendering

2007-05-09 Thread gwoo
use the RequestHandler component with ajax and the layout will be set automatically --~--~-~--~~~---~--~~ 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

Re: findAll with specific fields and hasMany relation

2007-05-09 Thread junal
i guess you have to use belongsTo for B model. On May 8, 4:46 pm, peper [EMAIL PROTECTED] wrote: Hi, Let's say I've got two models A and B , and the relation is A hasMany B Now I want to findAll A's with corresponding B's . this-A-findAll() works OK. I can specify fields from A

Re: Associations to reduce # of queries

2007-05-09 Thread soytuny
1. Don't store your results in $this-Product. That is confusing. 2. To expose data to the view use $this-set('variable_name', $data_for_variable); 3. I have never used loadModel. Instead, at the top of the controller I would add the unassociated model to the $uses array. For example in

Re: findAll with specific fields and hasMany relation

2007-05-09 Thread robechar
This is the only way I have found to do this, but perhaps some one knows a better method? this-A-hasMany['B']['fields'] = 'id'; $this-A-findAll(); On May 8, 3:46 am, peper [EMAIL PROTECTED] wrote: Hi, Let's say I've got two models A and B , and the relation is A hasMany B Now I want to

Re: cakephp rendering

2007-05-09 Thread Michael Augustyniak
gwoo wrote: use the RequestHandler component with ajax and the layout will be set automatically Not sure how to use it . I added inside controller var $components = array('RequestHandler'); so from view I use $this-render('edit'); which give still me double layout from controller the

Re: Elements vs requestAction

2007-05-09 Thread buzznut
Thanks for the feedback!! --~--~-~--~~~---~--~~ 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

Re: findAll with specific fields and hasMany relation

2007-05-09 Thread Sliv
I would probably use bindModel with conditions: http://groups.google.ca/group/cake-php/browse_thread/thread/dcbb867063e4696c/4fbbbd0bf6223330?lnk=gstq=bindmodelrnum=9#4fbbbd0bf6223330 On May 9, 1:08 pm, robechar [EMAIL PROTECTED] wrote: This is the only way I have found to do this, but

URL issue

2007-05-09 Thread Erich C. Beyrent
I have a vendor that is doing email marketing for me. They allow custom fields to be specified in their content templates. However, they don't support full urls as a custom field, only parts of the query string. I am sending them a URL like: http://servername.com/resorts/view/12/28/4 and

Re: cakephp rendering

2007-05-09 Thread Sliv
http://manual.cakephp.org/chapter/request_handler On May 9, 1:14 pm, Michael Augustyniak [EMAIL PROTECTED] wrote: gwoo wrote: use the RequestHandler component with ajax and the layout will be set automatically Not sure how to use it . I added inside controller var $components =

Re: URL issue

2007-05-09 Thread Sliv
one way: $newurl = '?var='.$this-params['controller'].'var2='.$this- params['action'].'var3='.$this-params[0].'var4='.$this- params[1].'var5='.$this-params[2]; On May 9, 1:32 pm, Erich C. Beyrent [EMAIL PROTECTED] wrote: I have a vendor that is doing email marketing for me. They allow custom

Re: URL issue

2007-05-09 Thread Sliv
oops, wrapped $newurl = '?var='.$this-params['controller']; $newurl .= 'var2='.$this-params['action']; $newurl .= 'var3='.$this-params[0]; $newurl .= 'var4='.$this-params[1]; $newurl .= 'var5='.$this-params[2]; --~--~-~--~~~---~--~~ You received this message

hasOne issues

2007-05-09 Thread uolax
This is driving me crazy, I've tried every possible setup in the model and tables and nothing seems to work. Please Please help. I have 2 tables, bopps - id name desc instit_id instits --- id name I have 2 models instit.php - var $name = 'Instit'; var

Re: hasOne issues

2007-05-09 Thread John David Anderson (_psychic_)
On May 9, 2007, at 11:53 AM, uolax wrote: This is driving me crazy, I've tried every possible setup in the model and tables and nothing seems to work. Please Please help. I have 2 tables, bopps - id name desc instit_id instits --- id name Given this setup, Bopp

Re: URL issue

2007-05-09 Thread Felix Geisendörfer
Not really a CakePHP specific question. But today is your lucky day. A) I'm looking for any kind of excuse to not study for my physics final tomorrow. B) I like playing with array, regex and urls : ). So here you go:

Re: hasOne issues

2007-05-09 Thread uolax
Thanks John. I guess because I'm mainly working with the Bopp, i wanted other data to belong to it. I guess it's just the way I'm thinking about models and relations. Thanks again for making my day easier. On May 9, 11:01 am, John David Anderson (_psychic_) [EMAIL PROTECTED] wrote: On May 9,

Re: hasOne issues

2007-05-09 Thread uolax
Now both models are going in loops referencing themselves: bopp.php var $belongsTo = array('Instit' = array('className' = 'Instit') ); } instit.php var $hasOne = array('Bopp' = array('className' = 'Bopp',

Re: hasOne issues

2007-05-09 Thread John David Anderson (_psychic_)
I don't see anything wrong, unless you've set your recursive values high for your find calls. This setup is normal. Bopp belongsTo Instit and Instit hasOne Bopp That allows you get get data from the other model, no matter which you're using. Are you getting an error or some long queries or

Re: help with pagination PRG

2007-05-09 Thread stefano
thx On 9 mayo, 02:44, AD7six [EMAIL PROTECTED] wrote: On 9 mayo, 03:39, stefano [EMAIL PROTECTED] wrote: Hello I try to do a search over apaginationcomponent i found thishttp://www.noswad.me.uk/Pagination/PRG but i can't download the source any one have this source or some like

Re: cakephp rendering

2007-05-09 Thread Michael Augustyniak
Sliv wrote: http://manual.cakephp.org/chapter/request_handler yeah thanks, but there is no sample in my case w my code controller Email var $components = array('RequestHandler'); function index() { $this-RequestHandler-setAjax($this); } function edit() {

Access form data in model

2007-05-09 Thread Harro
I thought it would be possible to access form submited data using $this-data['Model'] However I get the following error: Notice: Undefined index: User in E:\Server\htdocs\app\models\user.php on line 15 Anyone have any ideas? Thanks, Harro --~--~-~--~~~---~--~~

Re: Access form data in model

2007-05-09 Thread Gonzalo Servat
On 5/9/07, Harro [EMAIL PROTECTED] wrote: I thought it would be possible to access form submited data using $this-data['Model'] However I get the following error: Notice: Undefined index: User in E:\Server\htdocs\app\models\user.php on line 15 Anyone have any ideas? Thanks, Harro

Re: Access form data in model

2007-05-09 Thread Harro
Thanks for your reply, but I dont follow. I want to use the data submitted in the users_controller from, in the User model for custom validation. I was following this - http://snook.ca/archives/cakephp/cakephp_data_va_1/#c48338 Thanks, Harro. On May 9, 8:21 pm, Gonzalo Servat [EMAIL

Re: Access form data in model

2007-05-09 Thread Christopher E. Franklin, Sr.
From the controller do: $this-returned_information = $this-Modelname-function($this-data); Just take the data as an argument and parse the array. This is the way I do it but, if there is an easier way, I am all eyes. On May 9, 12:28 pm, Harro [EMAIL PROTECTED] wrote: Thanks for your reply,

Customizing routes

2007-05-09 Thread Aaron Shafovaloff
I'd like to have my controllers function normally at /controller/ action, but I'd also like users to be able to access parts of my site using /groupName/courseName. How would I go about doing this? Any good suggestions on where to look on how to customize the routes this way?

CakePHP Server issue w/ PHP CGI

2007-05-09 Thread ascend
I just moved my web host to a brand new setup at Dreamhost and now my Cake app does not work! It seems to work for static pages, but not for any pages that access the database. In the page title it says '404 not found' and in the body of the error message it says The requested address

Re: CakePHP Server issue w/ PHP CGI

2007-05-09 Thread Samuel DeVore
start with this http://tinyurl.com/2tjk5h yours, Grumpy old fart On 5/9/07, ascend [EMAIL PROTECTED] wrote: I just moved my web host to a brand new setup at Dreamhost and now my Cake app does not work! It seems to work for static pages, but not for any pages that access the database. In

missing session object

2007-05-09 Thread [EMAIL PROTECTED]
Hi, I just installed a small cake app I built on a new server. Everything worked fine on the development server, but on the production box, any calls to $this-Session in my app_controller.php product a Call to a member function on a non-object I made sure the entire cake core installed, it

Re: missing session object

2007-05-09 Thread Samuel DeVore
make sure your tmp folders all exist and are writable tmp/ cache/ models/ persistent/ views/ log/ sessions/ tests/ as has been repeated umpteen times in this list many ftp and or extraction programs to not deal with empty folders in an expected way On 5/9/07, [EMAIL

Re: missing session object

2007-05-09 Thread [EMAIL PROTECTED]
Sorry, I meant to tell you that I already checked that part as well, all writable. On May 9, 4:06 pm, Samuel DeVore [EMAIL PROTECTED] wrote: make sure your tmp folders all exist and are writable tmp/ cache/ models/ persistent/ views/ log/ sessions/ tests/ as

Re: missing session object

2007-05-09 Thread [EMAIL PROTECTED]
Also, would that keep the session object from being instantiated? I'm trying to find where this even happens, do you know? On May 9, 4:06 pm, Samuel DeVore [EMAIL PROTECTED] wrote: make sure your tmp folders all exist and are writable tmp/ cache/ models/ persistent/

redirection, rendering, or manually setting a view?

2007-05-09 Thread Greg Cerveny
Hello, I've created my default home page (/views/pages/home.thmtl) to include a login form for my application. This works fine, but if the login fails, I am unsure how to handle it. I would like to send the user back to the front page and display an appropriate error message. Here is my

Re: redirection, rendering, or manually setting a view?

2007-05-09 Thread soytuny
You can render the home view with $this-render('../pages/home'); If you would like to set an error message and redirect you can use $this-Session-setFlash('You ain't no user!'); To display the flash message, you need this line in your layout (or view) if($session-check('Message.flash'))

change password form

2007-05-09 Thread Greg Cerveny
I've been working on a form to allow users to change their passwords. For the view, since I'm asking for data that is not part of the model (newpassword, oldpassword, confirmpassword), I created an arbitrary name (change) for the form data. Question #1 Should I be naming my form variables

Re: redirection, rendering, or manually setting a view?

2007-05-09 Thread Greg Cerveny
Nice. I'm looking good :) Thanks a lot! 2007/5/9, soytuny [EMAIL PROTECTED]: You can render the home view with $this-render('../pages/home'); If you would like to set an error message and redirect you can use $this-Session-setFlash('You ain't no user!'); To display the flash

Re: CakePHP ZF!?

2007-05-09 Thread Gonzalo Servat
On 5/9/07, John David Anderson [EMAIL PROTECTED] wrote: Dear friends, I only provide this link because at the time of this writing, ZF is ahead in the poll. Please, please do as your conscience requires. http://www.php-mag.net/magphpde/magphpde_news/psecom,id,27201,nodeid,5.html *was*

Re: URL issue

2007-05-09 Thread Erich C. Beyrent
I am sorry I was not clear - I don't need to construct the URL from Cake - I need Cake to HANDLE this URL. I specify the URL, the vendor generates an email containing the link, Joe Smith receives the email and clicks on the link. I was thinking about parsing out the URL in index.php and

Techniques for implementing multiple UIs (ie HTML, Ajax, Flash) for the same actions.

2007-05-09 Thread Grant Cox
Our application has finally reached a point where we are designing the final UI. Up until now we've kept to the cake standard, where all actions have their own HTML view, with minimal javascript (only for required functionality). This of course lends itself to a lot of page reloading and

Re: URL issue

2007-05-09 Thread Grant Cox
Can't you just get them to create the url like: http://servername.com/?url=/resorts/view/12/28/4 then it should just work - as your .htaccess rules just rewrite the standard cake urls into this fashion anyway. On May 10, 10:54 am, Erich C. Beyrent [EMAIL PROTECTED] wrote: I am sorry I was

Re: whats the relationship between CakePHP 1.2 test suite N SimpleTest

2007-05-09 Thread ks
Mariano, Am I missing something simple? Can you let me know an example were you were able to use with redirect? Should I do something different in my application. I am keen to use your new framework for our unit tests but right now I am blocked on this. Thanks Krishnan On May 1, 8:26 am, ks