AW: Question on how to query

2008-11-19 Thread Liebermann, Anja Carolin
Hi Arvin, What I do is I add a search action (similar to the index action) to the controller. E.g. in my application I have hotels. So in my hotels_controller.php I have the function search and a view search.ctp in my hotels views folder. Some searches that I do involve related models so it i

Question on how to query

2008-11-19 Thread Arvin
Ok, i'm new here. i'm new with CakePHP and even PHP itself. I've only done basic CRUD (create, read, update delete) using the cakephp blog tutorial. I'm overwhelmed with the vast number of sites and forums that I dont know where to start looking for the answers to my question. So, i'm posting it

Re: String conversion

2008-11-19 Thread sun
sorry now i am using built in validation method. so how to assign the error message from this model to controller? let me know ur suggestion by sundar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" gro

Re: CakePHP and PHPBB3 Integration

2008-11-19 Thread Louie Miranda
I think there is a naming problem regarding libraries or namespace (both have similar name), I also want to do this but haven't got the time yet. Louie On Thu, Nov 20, 2008 at 3:10 PM, bookme <[EMAIL PROTECTED]> wrote: > > Hi, > > I want to integrate my CakePHP site with PHPBB3. > > I saw integr

CakePHP and PHPBB3 Integration

2008-11-19 Thread bookme
Hi, I want to integrate my CakePHP site with PHPBB3. I saw integration on PHPBB2 and cakephp..but it's not working. Can any body tell me what changes should I do in PHPBB2 and cakephp so that it can work for PHPBB3... Is there any tutorial or help for PHPBB3 and cakephp integration..I tried go

Load Helper in Console

2008-11-19 Thread Joel
Hi, I'm trying to load the TimeHelper from a console, but I'm not having much lunch. Can someone give me a pointer how to do this? I've tried: App::import('Helper','TimeHelper'); App::import('TimeHelper'); ClassRegistry::init('TimeHelper'); ClassRegistry::init('Time', 'Helper'); ClassRegistry:

Re: String conversion

2008-11-19 Thread sun
Thanks for ur suggestion yes. i have been changed like this one in my model.it will work but now i am using custom validation in my model so can u tell how to assign the error message from this model to controller? by sundar --~--~-~--~~~---~--~~ You received this

Re: String conversion

2008-11-19 Thread David C. Zentgraf
Somewhere in the data you're trying to save there's an array where there should be a string. E.g. array( 'Model' => array( 'field1' => array( ... ) ) ) instead of array( 'Model' => array( 'field1' => 'This should be a simple string'

Re: How to set DB config settings automatically based on $_SERVER['HTTP_HOST']?

2008-11-19 Thread [EMAIL PROTECTED]
Nice–Thanks! On Nov 19, 11:07 pm, RyOnLife <[EMAIL PROTECTED]> wrote: > Here's what I do: > > class DATABASE_CONFIG { > >         var $localhost = array( >                 'driver' => 'mysql', >                 'persistent' => false, >                 'host' => '127.0.0.1', >                 'log

Re: Mambo on CakePHP brainstorm

2008-11-19 Thread mbavio
On Nov 19, 12:47 pm, andphe <[EMAIL PROTECTED]> wrote: > Hi all, I'm on Mambo Dev team, and we realize that while we are > planning our major rewrite of Mambo based on CakePHP, we are not > hearing what the CakePHP community have to say. > > Specifically it would be good to have a brainstorm here,

Re: String conversion

2008-11-19 Thread sun
I am not able to understand exactly what do u said.. so once again can u explain in detail... please --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@go

Re: General ACL Question

2008-11-19 Thread mark_story
This can be done with the ACL but you need to do the check manually. It may seem like a good idea to have an ACL tree that looks like controller/action/id but that is setting yourself up for an epic fail. If you ever need to add an action you need to copy all the record nodes and set new perms

Re: How to set DB config settings automatically based on $_SERVER['HTTP_HOST']?

2008-11-19 Thread RyOnLife
Here's what I do: class DATABASE_CONFIG { var $localhost = array( 'driver' => 'mysql', 'persistent' => false, 'host' => '127.0.0.1', 'login' => '', 'password' => '', 'database' => '',

Re: Mambo on CakePHP brainstorm

2008-11-19 Thread mark_story
For me a clean API that is easy to use is something that I would want in a CMS. Many of the popular CMS have very complicated API's or multiple API's which are confusing. As for theming, keep it simple. I'm not familiar with the mambo code base, but I despise non PHP templates. It just makes thi

Re: cakePHP auth help (for a cake newbir)

2008-11-19 Thread RyOnLife
Zen, I really struggled with the Auth as well on my first project. Here's the tutorial that got me over the hump: http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/ -Ryan On Nov 19, 8:03 pm, Zen <[EMAIL PROTECTED]> wrote: > Hello folks, > > I've been using codeigniter for some t

Model::save() not executing

2008-11-19 Thread RyOnLife
I am trying to save some data to a HABTM association. I'm running in debug mode and Model::save() is not even attempting an INSERT. Looking at the query log at the bottom of the page, there is nothing both DESCRIBE and SELECT statements. Here is the attempted save: $this->Item->save($label_data)

Re: cakePHP auth help (for a cake newbir)

2008-11-19 Thread Brett Wilton
I'm not sure which cake docs you have read but http://book.cakephp.org/view/172/Authentication coveres most aspects of basic authentication... Also teknoid has a nice article explaining things further http://teknoid.wordpress.com/2008/10/08/demystifying-auth-features-in-cakephp-12 Hope that help

Re: How to get code coverage analysis working?

2008-11-19 Thread Brett Wilton
Brilliant that worked for me, thanks Mark. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send emai

How to set DB config settings automatically based on $_SERVER['HTTP_HOST']?

2008-11-19 Thread [EMAIL PROTECTED]
I have a local test server and a live site that I would like to use the same exact codebase on. To automatically switch the config settings in core.php I do something like this: if($_SERVER['HTTP_HOST'] == 'account.local') { // Local define('PATH_TO_WEBROOT', 'path/t

cakePHP auth help (for a cake newbir)

2008-11-19 Thread Zen
Hello folks, I've been using codeigniter for some time now. I've tryed to switch to cake previously but always got the same issue: Authentication. In codeigniter everything is less convention-centered. Table names can be anything and to "secure" a controller or a method inside a controller is sim

Re: Accessing named parameters

2008-11-19 Thread tekomp
So it's really just a matter of preference? Are there times when I would need to use one instead of the other? On Nov 19, 12:48 am, Kyo <[EMAIL PROTECTED]> wrote: > It all depend on what you need for your methods. > if you need only named parameters, $this->passedArgs could be your > choice. > >

Re: adding number of listing in each category

2008-11-19 Thread aron
yes. that could work. How would I echo that from the array in the view? On Nov 19, 5:15 pm, brian <[EMAIL PROTECTED]> wrote: > What else are you using $colors for?  I had to do something quite similar. > You might want to use a custom SELECT along the lines of: > > SELECT c.name, COUNT(cp.product

Re: Is Dreamweaver useless for a CakePHP project?

2008-11-19 Thread calzone
Back in the days of table-based layouts, first drafting a layout in Dreamweaver was the best use of that program I know. I'd put image slices in a table in their right places and add rows and columns as needed, do colspans and rowspans as needed, set widths and other attributes as needed then col

Re: adding number of listing in each category

2008-11-19 Thread brian
What else are you using $colors for? I had to do something quite similar. You might want to use a custom SELECT along the lines of: SELECT c.name, COUNT(cp.product_id) AS total FROM colors AS c LEFT JOIN colors_products AS cp ON cp.color_id = c.id GROUP BY c.name; On Wed, Nov 19, 2008 at 6:33 P

Re: How to get code coverage analysis working?

2008-11-19 Thread mark_story
To resurrect this thread code coverage was broken for me on my new computer. But by changing line 115 of /cake/tests/lib/ code_coverage_manager.php to xdebug_start_code_coverage(XDEBUG_CC_UNUSED); it started to work! Hope it solves someone else's issues too -Mark On Nov 9, 12:09 am, "Dr. Tar

Re: Is Dreamweaver useless for a CakePHP project?

2008-11-19 Thread thatsgreat2345
Yeah I don't think so. I only use dreamweaver for design, then rename the html files to ctp. I use a PHP IDE, and just manage everything myself as I've never seen any current php IDE that deals specifically with MVC. On Nov 19, 3:51 pm, aranworld <[EMAIL PROTECTED]> wrote: > Don't worry, this is

Is Dreamweaver useless for a CakePHP project?

2008-11-19 Thread aranworld
Don't worry, this is not another post asking how to open .ctp files in Dreamweaver... My question is directed at anyone who might have worked on a CakePHP project in Dreamweaver ... or, is this even possible? So many of my template files are filled with calls to the html helper, that I have to i

Re: Best practice MVC Drop Down

2008-11-19 Thread teknoid
use find('list'); ... it's covered in the manual On Nov 19, 5:34 pm, pkclarke <[EMAIL PROTECTED]> wrote: > What is the best way to populate a Drop Down list from data stored in > the database?  Assuming that only selected fields are required and the > data needs to be filtered to returns selected

adding number of listing in each category

2008-11-19 Thread aron
Hi Everyone, I am working on a project where we need to display the number of listings in each categories . .ie blue (34) green (20) red (12) orange (3) where the number in the brackets is the number of products in each color. ie. 34 products are blue. Click blue to filter products. What wou

Best practice MVC Drop Down

2008-11-19 Thread pkclarke
What is the best way to populate a Drop Down list from data stored in the database? Assuming that only selected fields are required and the data needs to be filtered to returns selected rows (e.g. SELECT id, description FROM states WHERE country_id = 1) Which of the following solutions would be

Re: General ACL Question

2008-11-19 Thread aranworld
The problem lies with the Auth Component. When parsing a URL to determine if a user has access to a resource, the Auth Component does not factor in the id (or any other passed parameter). This means that you cannot use the Auth Component to automatically protect content on a record level basis .

console help please

2008-11-19 Thread calzone
Sorry if this is a likely stupid question, but I can't seem to find the answer anywhere. Searching for CakePHP console examples outside of using it for ACL and baking seems mighty thin on google. Maybe I'm overlooking something that should be obvious? The Backstory: I have cakephp doing some int

getting started problem with Auth

2008-11-19 Thread awstar
Hi, I'm working my way through 1.2 and in trying out Authenticate. i encounter a problem when I put this line in any controller. var $components = array('Auth'); What happens is the following when I try to bring up a view in the browser. Warning (2): Cannot modify header information - header

Re: Schema Update fails

2008-11-19 Thread benjam
Anybody have any suggestions? Or should I just submit a ticket? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this

Re: Mambo on CakePHP brainstorm

2008-11-19 Thread Rafael Bandeira aka rafaelbandeira3
What I see a lot is people looking for a admin backend that actually works. A CMS just for the MS. I think that a fashion way of delivering data to views, and a good UI work on admin end is what people really seek. Modularity and extensibility are huge pluses - but not strictly necessary. --~--~--

Re: General ACL Question

2008-11-19 Thread eMarcus
Hi Anja, Thanks for your reply. I will in vestigate in that! What confuses me a little bit: When I want my security to be based on controller action access, I can easily create ACOs named after the controller actions and configure access in the aro_aco table. Any unallowed access causes the Auth

Re: How to add colour to product? [Models associations/relations, habtm?]

2008-11-19 Thread teknoid
If you have both id's you should just save directly in to the join table. $data['ColoursProduct']['product_id'] = 1; $data['ColoursProduct']['colour_id'] = 2; $this->Product->ColoursProduct->save($data); Note, the join table model is auto-created for you... I have a few other posts that describ

Re: need help with forms and ajax

2008-11-19 Thread mmm
already found a solution to it! thanks anyway! On 19 Nov., 13:15, mmm <[EMAIL PROTECTED]> wrote: > hi group, > i'm missing something really simple and i need your help, i have a > simple form in my view, when a user presses submit button i want to > send form data to controller( or view) and get

Acl i admin routing

2008-11-19 Thread VVilku
Hello, I have one little question... I set up permission ($group -> some group id): $this->Acl->deny($group, 'controllers/Memoirs/admin_index'); and when i use 'admin/Memoirs/index" this group can get in... But when I checked this: $this->Acl->check($group, 'admin_index', '*'); in this controll

Re: problem naming controller

2008-11-19 Thread Henrique Machado
Its nothing about inflectors? 2008/11/19, mchollan <[EMAIL PROTECTED]>: > > > Carlos, > > I see what you are saying, and I wrestled this for a short time on my > own. The reason I believe You get those errors when you use what you > believe is the correct naming convention is actually how you r

Plugin Auto-install!

2008-11-19 Thread Henrique Machado
Hello Bakers! I'm thinking about create an custom CMS (for my purposes) with cakephp. I need to do it more modular as possible. And more automatic-install as possible. Eg: "News plugin" Is right do an install.php to create tables for it? and relationships? I' m in the right way? Some ideas p

Re: Tutorial - How make associations between models on different database

2008-11-19 Thread [EMAIL PROTECTED]
I have noted from cake core (dbo_source.php) that in generation of the join of the query there is: "if ($model->useDbConfig == $linkModel->useDbConfig) {" So if databases for model is different the join build is bypassed. On 19 Nov, 11:01, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Thi i

Re: Extract data

2008-11-19 Thread thatsgreat2345
Well I never set it to a variable, but reset works great I never knew reset existed thanks a ton! On Nov 19, 1:21 am, Adam Royle <[EMAIL PROTECTED]> wrote: > Whats wrong with this? > > $data = $data[0]; > > or > > $data = reset($data); > > Cheers, > Adam > > On Nov 19, 5:26 pm, thatsgreat2345 <[E

AW: General ACL Question

2008-11-19 Thread Liebermann, Anja Carolin
Hi Marcus, As I just found out yesterday mayself: I guess you have to map your actions to the CRUD model like: $this->Auth->mapActions(array('update'=> array('edit','editFoo','myupdatesomething'))); That is, when you plan on also using Auth Anja -Ursprüngliche Nachricht- Von: cake

Re: Auth redirect problem

2008-11-19 Thread Dardo Sordi Bogado
> Muchas smoochas for your support Dardo! Your welcome, happy baking! - Dardo Sordi. > Anja > > > -Ursprüngliche Nachricht- > Von: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von Dardo > Sordi Bogado > Gesendet: Mittwoch, 19. November 2008 13:17 > An: cake-php@google

Re: Mambo on CakePHP brainstorm

2008-11-19 Thread andphe
Hi Olivier, thanks for reply On 19 nov, 10:29, "Olivier Percebois-Garve" <[EMAIL PROTECTED]> wrote: > Hi > Since the announcement of the rewrite (a year ago ?), I tried a few times to > check the progress, Yes, a long time ago, my apologize for that, a lot of water has passed under the bridge si

Re: Mambo on CakePHP brainstorm

2008-11-19 Thread Olivier Percebois-Garve
Hi Since the announcement of the rewrite (a year ago ?), I tried a few times to check the progress, but I could not find anything. So personally, the first thing I would expect, is to have a publicly readable repository from which i could download the last dev version. After that, I would love the

General ACL Question

2008-11-19 Thread eMarcus
Hi, I want to use the ACL component to control access of users to model data. I built up AROs, ACOs and permissions so far. 1.) does the ACL component automatically check if a user has an UPDATE right on save operations? 2.) if not, where would be the best place to perform that check? (in a cal

Mambo on CakePHP brainstorm

2008-11-19 Thread andphe
Hi all, I'm on Mambo Dev team, and we realize that while we are planning our major rewrite of Mambo based on CakePHP, we are not hearing what the CakePHP community have to say. Specifically it would be good to have a brainstorm here, about what the CakePHP users/developers expect on a cake based

Re: Help with populating SELECT drop down

2008-11-19 Thread grigri
The call to Set::combine() just arranges the data in the format you want. The Set class is very powerful and you can do a lot with it. And no, "grigri" has nothing to do with rock climbing :) I picked the name back around 1999/2000 while I was living in France - in French it just refers to a good

Re: How to apply permission to XML folder in webroot

2008-11-19 Thread bookme
Thanks Rob... I used .htpasswd and .htaccess and deny access outside world using a user name and password.. but my problem is that I am using XML file inside flash..so when ever flash is running it also require authenticationthat must be not Is there any solution for it ? On Nov 19, 6:39 p

AW: Auth redirect problem

2008-11-19 Thread Liebermann, Anja Carolin
She's got it, yeah baby she's got it! Oh my, thanks for your help Dardo. So, what messed it up in the end was my old basic authentication method, which checked for a session variable and when it didn't find it kicked my back to login. And this was placed in every controller beforeFilter action

Re: String conversion

2008-11-19 Thread Rob
You should be able to see the structure of your data if you set debug to '3' in core.php This usually happens when your code references a var that is an array (like when you are using a field from a HABTM related table) which can be confusing if you are expecting a single row back. I had a coupl

Re: Help with populating SELECT drop down

2008-11-19 Thread luigi7up
@anja This solution works fine but I thought I could do it more elegant :) thanks @grigri I'll try this... I don't get it at first glance but I'll try it. It seems like something worth of try... I'll tell you how it went P.S. Username "griGri" has something to do with climbing device or not? O

Warning (512) ... cache not writable

2008-11-19 Thread Brian
I'm trying to set up cakephp for the first time. I've copied all the files into a sub directory of my account and run http://domain/cake. I receive Warning (512): ~/www/cake/app/tmp/cache/ is not writable [cake/libs/cache/file.php, line 263]. I have chmod 777 every directory leading to cache in

Re: How to apply permission to XML folder in webroot

2008-11-19 Thread Rob
I agree with David, if you really don't want anybody to have direct access to it, don't put it in the webroot. That said, you can have files in a particular folder in your web site that you deny access to by using the .htaccess file. You deny the whole directory, specific files, or even set it u

Re: Job offer in Madrid (Spain)

2008-11-19 Thread AD7six
Please use http://cakephp.org/jobs --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL P

need help with forms and ajax

2008-11-19 Thread mmm
hi group, i'm missing something really simple and i need your help, i have a simple form in my view, when a user presses submit button i want to send form data to controller( or view) and get the result back in the ajax callback, updating one singe div on the view. how can actually do that? pleas

Job offer in Madrid (Spain)

2008-11-19 Thread villalvilla
We are currently making our team bigger and stronger at Mercatest. So we are looking for 3 (three) analyst-programmers with proved expertise in web software development based on MVC Frameworks with PHP + Oracle, both frontend and backend over Linux platforms (Apache), as well as Oracle database

Re: How to apply permission to XML folder in webroot

2008-11-19 Thread bookme
Can I do it providing permission chmod -R 711 to this folder on linux server... I try it...it's working but don't know is it secure or not? Please tell me what should I do ? On Nov 17, 12:43 pm, "David C. Zentgraf" <[EMAIL PROTECTED]> wrote: > You'd do this on the server side by setting file s

Re: Set different background colour for each row in tag

2008-11-19 Thread grigri
First off, while it is possible to specify background colours for elements in css, not all browsers will honour your request and will display them normally. Anyway, the select options passed to the form helper can be in 2 formats. The first, the simple keyed id => label array, is sufficient for

Set different background colour for each row in tag

2008-11-19 Thread Hipnotik
Hi I would like to generate form field with multiple option with each row with other background colour. Rows colours should be taken from database. Example table schema: id name background_colour // in example: #f0f0f0 #controller code $colours = $this->Colour->find('list'); $this->set("c

Re: Auth redirect problem

2008-11-19 Thread Dardo Sordi Bogado
Hi, > Hi everybody, > > I have auth and acl in place, but have the strange situation that after > logging in I can view my index of groups and users (admin and normal > routing) and can also edit users, but when I try to access any other > controller I get kicked back to the login form. So also t

Console not reporting E_NOTICE?

2008-11-19 Thread Defranco
Hi, I'm running console for test suites & custom shells and just noticed that it will not report any E_NOTICE (like for example 'undefined index') in console output or log files even debug is set to 3. Shouldn't console report E_NOTICE? at least while running test suite? I've changed /cake/libs

Auth redirect problem

2008-11-19 Thread Liebermann, Anja Carolin
Hi everybody, I have auth and acl in place, but have the strange situation that after logging in I can view my index of groups and users (admin and normal routing) and can also edit users, but when I try to access any other controller I get kicked back to the login form. So also the

Re: Help with populating SELECT drop down

2008-11-19 Thread grigri
Hi Luka This sounds like a job for Set::combine() : select('variant', $options); ?> hth grigri On Nov 19, 10:42 am, luigi7up <[EMAIL PROTECTED]> wrote: > Hello I need help with populating drop down select element. > > I have following data in array $product that is available in my view > > Arr

AW: Help with populating SELECT drop down

2008-11-19 Thread Liebermann, Anja Carolin
Hello Luigi, I would do it the following way: In your controller parse your array and create a new one which contains teh desired values. Pass this array via $this->set on to the view. Maybe there is a more elegant way to do it, but this is how I do it. anja -Ursprüngliche Nachricht-

Help with populating SELECT drop down

2008-11-19 Thread luigi7up
Hello I need help with populating drop down select element. I have following data in array $product that is available in my view Array ( [Product] => Array ( [id] => 1 [product_category_id] => 1 [user_id] => 26 [title] => Nije Vuk Ovca

AW: How to bake the controller/views from console

2008-11-19 Thread Liebermann, Anja Carolin
Hi Srini, You open your commandline and change to the directory ...\cake\console. Here is what I do with my directory structure: C:\Programme\xampp\htdocs\acltest\cake>cd console The you type: cake bake -app C:\Programme\xampp\htdocs\cakebaketest C:\Programme\xampp\htdocs\aclte

Re: Destroying cakephp session on closing browser window

2008-11-19 Thread Yogesh
Thnaks for your reply. I have used the javascript method on onunload. in that i call the cakephp function using new Ajax.Requesthandler function but it is not working. Session is still not get destroyed On Nov 18, 9:53 pm, thatsgreat2345 <[EMAIL PROTECTED]> wrote: > Yeah multiple tabs in firefox

Re: Tutorial - How make associations between models on different database

2008-11-19 Thread [EMAIL PROTECTED]
Thi is all ok. But If I have this situation: Model A in DB A Model B in DB B Model A belongsTo Model B I make a find on Model A with a conditions on Model B. In this case I get error . How can I do in this case? Many Thanks On 8 Ott, 15:24, teknoid <[EMAIL PROTECTED]> wrote: > The only proble

Re: Destroying cakephp session on closing browser window

2008-11-19 Thread Yogesh
Thnaks for your reply. I was also thinking to uset the database table to maintain the session but now changing the session maintaing method may will need to work whole things again, but thanks once again for your reply On Nov 18, 9:05 pm, "Marcelo Andrade" <[EMAIL PROTECTED]> wrote: > On Tue, Nov

Re: Named parameters VS $_GET

2008-11-19 Thread Rafael Bandeira aka rafaelbandeira3
Query strings are evil for seo. That's why. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to

Re: Edit in Views

2008-11-19 Thread raremon
hi guys, thanks for the help. I tried to edit the controllers and place some index function to it and it triggered something. I also asked someone who can help me about it and told me regarding with scaffolding and stuff. Apparently, I used the console functions in baking it and I used command 'c

Re: Extract data

2008-11-19 Thread Adam Royle
Whats wrong with this? $data = $data[0]; or $data = reset($data); Cheers, Adam On Nov 19, 5:26 pm, thatsgreat2345 <[EMAIL PROTECTED]> wrote: > I was curious , I have been trying and looking around but have > failed. > > Array > ( >     [0] => Array >         ( >             [User] => Array(..

String conversion

2008-11-19 Thread sun
Here after occuring this problem The Validation should not work properly... please how to recover from this problem. i think if solve the conversion from array to string problem then only the validation will work so any one help me to solve the problem? with regards sundar --~--~-~-

String coversion

2008-11-19 Thread sun
Here after occuring this problem The Validation should not work properly... please how to recover from this problem. i think if solve the conversion from array to string problem then only the validation will work so any one help me to solve the problem? with regards sundar --~--~-~-

Re: How to bake the controller/views from console

2008-11-19 Thread Srini
Hai Anja, Can you please tell me how to add the -app parameter.. ? Thanks, Srini On Nov 19, 1:37 pm, "Liebermann, Anja Carolin" <[EMAIL PROTECTED]> wrote: > Hi Srini, > > I had also trouble with bake first, but to make it work I didn't have to edit > anything. > But adding the -app parameter

String conversion

2008-11-19 Thread sun
How to convert a array to string in cakephp? can you explain the string conversion from array to string in one example.? My problem: I have three text fields and one upload file in the form. when i click the submit button with out any values the follwing error message will displaying. Notic

Re: Working with forms for CMS

2008-11-19 Thread Flipflops
Hi Jon, Dardo I guess it depends how hacky you want to be. You could have two models one that manages the form builder and another which is really just a shell that would validate the actual forms when you submit them. Off the top of my head I guess you could do something like this (not tried ou

Re: Accessing named parameters

2008-11-19 Thread Kyo
It all depend on what you need for your methods. if you need only named parameters, $this->passedArgs could be your choice. hth --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group,

Re: Crazy problem with special characters in the controllers

2008-11-19 Thread carlos ferrandis
Yes, both views are UTF-8, but the thing is even the debug ($vargeneratedbytheFind), before it gets to the view, shows the errors brought from the table. In one controller it read perfectly and the other with the weird characters: that one generate acceptable content: $items2 = $this->I

AW: How to bake the controller/views from console

2008-11-19 Thread Liebermann, Anja Carolin
Hi Srini, I had also trouble with bake first, but to make it work I didn't have to edit anything. But adding the -app parameter surely did help. Anja -Ursprüngliche Nachricht- Von: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von Srini Gesendet: Mittwoch, 19. Novembe

Re: How to bake the controller/views from console

2008-11-19 Thread austin
not sure if what i did was correct, but here's what i did: in the pathtocake\cake\console\cake.bat, i changed "php -q "%lib %cake.php" -working "%CD%" %*" to be: "pathtophp\php.exe -q "%lib %cake.php" -working "%CD%" %*" also, i needed to set PATH=pathtocake\cake\console lastly, when doing "cak

Re: problem naming controller

2008-11-19 Thread mchollan
Carlos, I see what you are saying, and I wrestled this for a short time on my own. The reason I believe You get those errors when you use what you believe is the correct naming convention is actually how you request the pages. The URL routes like this http://localhost/{Application}/{Controller

Re: How to bake the controller/views from console

2008-11-19 Thread Srini
Hai Daniel, Thanks for giving the reply.Iam very new to cakePHP.iam using windows os. i had tried this on command prompt: start -> run -> cmd cd to/projectpath/cake/console then cake bake but it has been failed. Thanks, Srini On Nov 18, 7:08 pm, Daniel Hofstetter <[EMAIL PROTECTED]> wrote