Re: error in post

2008-09-08 Thread wael altahawi
Thanks for your answer i m working on cake_1.1.19 i have included var $helpers = array('Form', 'Html', 'Javascript'); but also i get *Fatal error*: Call to undefined method FormHelper::create() in * c:\AppServ\www\applogic\app\views\users\index.ctp* on line *1* On Tue, Sep 9, 2008 at 10:16 AM,

Re: error in post

2008-09-08 Thread Kalt
Hi, You have to include the FormHelper first, in your UsersController or in the AppController : var $helpers = array('Form', 'Html', 'Javascript'); But in the last version of Cake, it's included automatically. What version are you working with ? wael altahawi a écrit : > hi > i m trying to exec

Best profiler for cake php?

2008-09-08 Thread Dianne van Dulken
Hi, I was just wondering what profiler everyone else was using. I'm having trouble finding one that will work with my cakephp setup. Xdebug causes my apache to crash, and I'm having similar issues with some other ones. My setup is Cake version: 1.2.0.5427 Apache 2.2.4 PHP: 5.2.4 If anyone co

error in post

2008-09-08 Thread wael altahawi
hi i m trying to execute code from example in one book but i get error if there is error in code please help me (index.ctp) create(null, array('action' => 'index'));?> Enter Your Name input('name'); ?> end('Go');?> (users_controller.php) data)) { //data posted echo $this->data['name']; $this->

Re: How to get form helper to remember values correctly

2008-09-08 Thread David C. Zentgraf
The form helper doesn't remember anything. When you submit the form, the data is being saved in $this->data. The FormHelper just fills in any matching values from $this->data when creating a form input. So your data takes a roundtrip Form > Controller ($this->data) > FormHelper. Is there a

Set::extract, parents and ticket 5225

2008-09-08 Thread David Christopher Zentgraf
Hi! I have a tree structure like this: Array ( [0] => Array ( [Location] => Array ( [id] => 1 [parent_id] => [lft] => 1 [rght] => 32 [name_en] => Tokyo

How to get form helper to remember values correctly

2008-09-08 Thread trustfundbaby
I have a simple form that I setup that looks something like this <-- snippet ---> input('eaddress', array('class' => 'input_text', 'label' => 'Your email Address: *', 'div' => false)); ?> input('phone', array('class' => 'input_text', 'label' => 'Phone Number: ', 'div' => false)); ?> <---

Re: Some articles by Nate Abele aka _nate_

2008-09-08 Thread Gustavo Carreno
2008/9/8 Jaime <[EMAIL PROTECTED]>: > I didn't knew these. Thanks! Quite welcome mate !! --~--~-~--~~~---~--~~ 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.co

Re: Acl and Auth at record level with crud mode

2008-09-08 Thread aranworld
I while ago I submitted an enhancement ticket regarding this: https://trac.cakephp.org/ticket/3857 Since then I have gone back and forth on whether I think it should be universal or just handled on an individual basis. Anyways, if you check out the ticket, there are some patches which might giv

Re: Check out this CakePHP Job Board - Small Problem

2008-09-08 Thread Wayne Fay
Good to hear you made it work. As for the "healthy code" bit, I don't like the all over the place personally, but if it works, this is simply an issue of style preference. This would be my preference: image('pdf-icon.gif', array('alt'=>'', 'style'=>'vertical-align: bottom; margin-right: 5px'));

Re: cake and Stored Procedures

2008-09-08 Thread Gonzalo Servat
Oops, pressed send by accident: On Mon, Sep 8, 2008 at 6:52 PM, Gonzalo Servat <[EMAIL PROTECTED]> wrote: > On Mon, Sep 8, 2008 at 6:30 PM, Gonzalo Servat <[EMAIL PROTECTED]> wrote: > >> >> I'm not sure I have the right answer for you but, until somebody else >> replies with a better answer, I be

Re: cake and Stored Procedures

2008-09-08 Thread Gonzalo Servat
On Mon, Sep 8, 2008 at 6:30 PM, Gonzalo Servat <[EMAIL PROTECTED]> wrote: > > I'm not sure I have the right answer for you but, until somebody else > replies with a better answer, I believe if you use the mysqli driver (not > mysql) and the query contains "call" in it, it should work. > Looking i

Re: RE sometimes I wonder if cakeph is worth all the trouble - seems like very steep learning curve.

2008-09-08 Thread Brett Wilton
You want instant support and help for all your employee's and all for FREE ? If your employee's are struggling where's your in-house training? If you can't provide that why not contact some one like http://cakefoundation.org who offer this service. There is a learning curve in a framework just a

Re: cake and Stored Procedures

2008-09-08 Thread Gonzalo Servat
On Mon, Sep 8, 2008 at 5:59 PM, Car For Sale Sign wrote: > > Hi - > > I am considering using Cake and Stored procedures for a new app that I > am going to write. Does anyone have any suggestions on using SPs with > cake. > I'm not sure I have the right answer for you but, until somebody else re

Re: Check out this CakePHP Job Board - Small Problem

2008-09-08 Thread kujina
Oh wow, I seemed to of corrected it to make it work, it seems to work fine now with the following adjusted on the first line: image('pdf-icon.gif', array('alt'=>'', 'style'=>'vertical-align: bottom; margin-right: 5px')) ?>link('Information', UPLOADS_URL . "/{$job['Job'] ['information_doc']}", a

Re: URL not Found Error

2008-09-08 Thread teknoid
Make sure that AllowOverride is set to All in your apache conf. Also, double check that mod_rewrite is enabled. On Sep 8, 4:39 pm, "Sabrina Akter" <[EMAIL PROTECTED]> wrote: > hi Femi, > its by default set : *Configure::write('debug', 2);* > i changed it to 1. for 1 or 2 its shows the same result

cake and Stored Procedures

2008-09-08 Thread Car For Sale Sign
Hi - I am considering using Cake and Stored procedures for a new app that I am going to write. Does anyone have any suggestions on using SPs with cake. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "C

Re: URL not Found Error

2008-09-08 Thread Sabrina Akter
hi Femi, its by default set : *Configure::write('debug', 2);* i changed it to 1. for 1 or 2 its shows the same result "URL not found". hi agelin, i dont understand what u wana know. in .htaccess it contains: RewriteEngine on RewriteRule^$webroot/[L] RewriteRule(.*) we

Re: Trace the functions invoked between page request and output

2008-09-08 Thread RamyaK_CS
Thank you On Sep 6, 8:28 am, teknoid <[EMAIL PROTECTED]> wrote: > xdebug would be one option Debugger::trace() is another > > On Sep 5, 7:19 pm, RamyaK_CS <[EMAIL PROTECTED]> wrote: > > > > > Hi all, > > > I want to trace all functions invoked in cake php code between a page > > requ

Re: missing view

2008-09-08 Thread Ranjana Sriavastava
Yes On Tue, Sep 9, 2008 at 1:33 AM, Donkeybob <[EMAIL PROTECTED]> wrote: > > If its Cake 1.2 then its a default.ctp file. . . .right? > > On Sep 8, 2:56 pm, "Ranjana Sriavastava" <[EMAIL PROTECTED]> > wrote: > > default.thml page created under Views. > > > > On Mon, Sep 8, 2008 at 9:57 PM, g

Re: missing view

2008-09-08 Thread Donkeybob
If its Cake 1.2 then its a default.ctp file. . . .right? On Sep 8, 2:56 pm, "Ranjana Sriavastava" <[EMAIL PROTECTED]> wrote: >  default.thml  page created under  Views. > > On Mon, Sep 8, 2008 at 9:57 PM, gabriel <[EMAIL PROTECTED]> wrote: > > > Hi, I am new to cake and are really frustrated with

Re: personilized url - routing

2008-09-08 Thread Klesus
Thank you for your answer. If I put $companyName in all the link and redirection, the companyname will be interpreted as a controller... I find a solution for the first access by configuring routes: $Route->connect('/companyname/:controller/:action', array('controller' => 'pages', 'action' => 'd

Re: what does __() mean?

2008-09-08 Thread Gonzalo Servat
On Mon, Sep 8, 2008 at 4:00 PM, Action <[EMAIL PROTECTED]> wrote: > > The bake console generated the following code: > > $this->Session->setFlash(__('The User has been saved', true)); > > what does the __() mean? Look at the function in cake/basics.php: "Returns a translated string if one is fo

what does __() mean?

2008-09-08 Thread Action
The bake console generated the following code: $this->Session->setFlash(__('The User has been saved', true)); what does the __() mean? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this

Re: missing view

2008-09-08 Thread Ranjana Sriavastava
default.thml page created under Views. On Mon, Sep 8, 2008 at 9:57 PM, gabriel <[EMAIL PROTECTED]> wrote: > > Hi, I am new to cake and are really frustrated with the basics. I have > created a default.thml in layouts, with the code $content_for_layout; ?>, then I created a test.thtml in pages

problem with HABTM find

2008-09-08 Thread rob30
Hi, Conference model: var $hasAndBelongsToMany = array('Sphere' => array('className'=> 'Sphere',

Re: JQuery + JSON

2008-09-08 Thread hydra12
It's been awhile since I tried this, and I'm not in a position to test this code, but I think you can do something like this: Make sure to include these 2 lines in your controller: Configure::write('debug', '0'); //set debug to 0 for this function because debugging info breaks the XMLHttpReques

Re: missing view

2008-09-08 Thread Gonzalo Servat
On Mon, Sep 8, 2008 at 1:27 PM, gabriel <[EMAIL PROTECTED]> wrote: > > Hi, I am new to cake and are really frustrated with the basics. I have > created a default.thml in layouts, with the code $content_for_layout; ?>, then I created a test.thtml in pages, I point > the server to it and get a miss

missing view

2008-09-08 Thread gabriel
Hi, I am new to cake and are really frustrated with the basics. I have created a default.thml in layouts, with the code , then I created a test.thtml in pages, I point the server to it and get a missing view error - anyone any ideas? --~--~-~--~~~---~--~~ You recei

Re: Some articles by Nate Abele aka _nate_

2008-09-08 Thread Jaime
I didn't knew these. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECT

Save - problem!

2008-09-08 Thread seanislegend
I'm using the TinyMCE editor on a textarea in my CMS I'm building. A problem I've just ran into is when I add images, once saved they end up like this: '', obviously due to the way Cake treats the data before it's saved. Is there any workarounds for this?? --~--~-~--~~~--

Re: afterDelete question

2008-09-08 Thread seanislegend
Thanks for your suggestions, I've already got it working without afterDelete. Thanks. On Sep 8, 9:26 am, alkemann <[EMAIL PROTECTED]> wrote: >         function delete($id = null) { >                 if (!$id) { >                         $this->Session->setFlash(__('Invalid id for Contact', > tr

Re: personilized url - routing

2008-09-08 Thread starkey
Interesting. I imagine there are two ways. 1. Put the companyname in every $html-link() call as the first param. 2. Override the $html-link method (perhaps in app_helper) to get the param from the session and then include it in the link. For example: app_helper would have function companyLink(s

Re: Check out this CakePHP Job Board - Small Problem

2008-09-08 Thread Wayne Fay
This is unfortunately something you will have to solve yourself, or with the assistance of a local PHP expert. Perhaps you can find a decent PHP IDE/editor that will highlight mistakes. Or you could try right-clicking and "view source" on the HTML to see the error. Or check the logs of your webser

Re: Favicon Path

2008-09-08 Thread Michael
Oops, got myself volunteered didn't I. Don't have a bakery account yet, completely new to the project. But I will. Michael On Sep 7, 10:13 am, AD7six <[EMAIL PROTECTED]> wrote: > On Sep 7, 4:04 pm, Michael <[EMAIL PROTECTED]> wrote: > > > Perfect.  Thanks. > > > My initial usage was straight

personilized url - routing

2008-09-08 Thread Klesus
Hi, I have a website with more than one database. each DB is a copy for an other client. I want to use my website like that : current : www.serveradress.com/sitedirectory/index expected :www.serveradress.com/sitedirectory/companyname/index the companyname must not be a directory but just an inf

Authentication from multiple tables.

2008-09-08 Thread santa
I've two tables. One for normal user: create table mon_utenti id mediumint NOT NULL auto_increment, Username varchar(19) NOT NULL, Password varchar(10) NOT NULL, PRIMARY KEY (`id`), ); Another for admin user: create table `mon_generale` ( `id` mediumint(9) NOT NULL auto_increment,

Slash in URL Parameter

2008-09-08 Thread starkey
Hello, I am trying to create a URL that contains unnamed parameters that could be strings with forward slashes. I've looked around and saw that it is recommended to use urlencode(), which I tried. The URL ends up looking like this: /view/Migration%2FTransportation however, I still get a 404.

Re: Acl and Auth at record level with crud mode

2008-09-08 Thread luke BAKING barker
aranworld - I am wondering how this could be made universal throughout an app...better possibly in the app_model somehow? but obvioulsy Auth is a component :/ On Aug 28, 8:22 am, aranworld <[EMAIL PROTECTED]> wrote: > You can add this to your UsersController: > > function __checkUsersOwnRecord($r

Testing a Model with Associations

2008-09-08 Thread Laurent Bois
Hello I'm newbie for CakePHP, and have been working for 2,5y with Rails. We currently have an application developed from scratch by another team... the code is not very maintainable, and i'd like to refactore it in order to use Cake. Before really playing with controllers, views , i wanted to uni

Re: RE sometimes I wonder if cakeph is worth all the trouble - seems like very steep learning curve.

2008-09-08 Thread RichardAtHome
> if every employee have to spend months learning this new platform then , must > as well code directly in PHP ! If you don't want to learn a (new) framework, don't. A couple of months learning CakePHP will pay itself back in no time due to increased productivity ;-) On Sep 8, 6:29 am, James C

Re: Model Filter

2008-09-08 Thread jmmg77
Thank You, a little different that what I was thinking, but it does the job. Thanks again. --~--~-~--~~~---~--~~ 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.c

Re: Model Filter

2008-09-08 Thread grigri
try something like this: implement beforeFind() and set a condition: class Celebrity extends AppModel { var $name = 'Celebrity'; var $useTable = 'people'; function beforeFind($query) { if (empty($query['conditions'])) { $query['conditions'] = array($this->alias . '.type' => 2);

Problems with MS Access database through dbo_odbc

2008-09-08 Thread Jeroen van Wissen
Hi, For several day's I'm trying to include an MS Access database into my project. Database comes from an external system the client uses, so converting it to mysql is a no go. The connection works, but when I try a $model->find('all') I always get errors: odbc_fetch_row() No tuples available at

Re: Why is Model::data set to false after Model::save() ?

2008-09-08 Thread Abrar Arshad
On Sat, Sep 6, 2008 at 9:30 PM, MarcS <[EMAIL PROTECTED]> wrote: > > Hi, > > I have trouble understanding why the Model::data array is being set to > false after saving the model. > Many times I need to save the model (for example because I need the > insert Id to work with a associated model) but

Re: Newlines with the Email component

2008-09-08 Thread Abrar Arshad
On Wed, Sep 3, 2008 at 12:17 PM, Arak Tai'Roth <[EMAIL PROTECTED]>wrote: > > I have been spending some time with this problem as of late trying to > figure out the solution but I haven't gotten anywhere, so I thought I > would ask on here. > > I am trying to put newlines into the data I am sending

RE sometimes I wonder if cakeph is worth all the trouble - seems like very steep learning curve.

2008-09-08 Thread James Chua
if every employee have to spend months learning this new platform then , must as well code directly in PHP ! Date: Mon, 8 Sep 2008 02:02:41 +0530 From: [EMAIL PROTECTED] To: cake-php@googlegroups.com Subject: Re: dropdown with country,state,city I know that , iwant drop down with pach country

Re: Vote for CakePHP built-in support for Netbeans 6.5!

2008-09-08 Thread ron
Count me in too. I just installed NetBeans 6.5 beta and it recognized .ctp files as .php files. Got my hopes up for more Cake magic. On Sep 6, 11:17 pm, "Okto Silaban" <[EMAIL PROTECTED]> wrote: > I've been using Netbeans PHP from the first time playing with CakePHP.. > Of course i'll vote.. >

Re: Paginator and page variable in URL

2008-09-08 Thread ron
Hopefully someone more experienced with CakePHP will respond to you, but I had a similar problem with pagination, and this is how I worked around it: hasPrev()) echo fixPagination($paginator->prev('<<', array(), null, array('class'=>'disabled'))); ?>

Some articles by Nate Abele aka _nate_

2008-09-08 Thread Gustavo Carreno
Hey guys, I was revisiting some REST threads on the list and found some good articles from Nate Abele aka _nate_ on C7Y: Best Practices in MVC Design with CakePHP Advanced URL Routing and SEO Techniques with CakePHP

Model Filter

2008-09-08 Thread jmmg77
I have 2 models I'd like to be based on the same table, but I need them to be filtered. Ex. table: 'people' model1: 'celebrities' (where type = 2) model2: 'littlepeople' (where type = 1) I'm not talking about associations, just models based on filtered results. Is this possible at the model l

Re: vendor integration question

2008-09-08 Thread Adam Royle
Oh sorry, I misread your initial post. From what I can see you're trying to include client1.php (just a sample script), when really you should just include the library directly... You've got the correct code (App::import('Vendor','nusoap',array('file'=>'nusoap/lib/nusoap.php')) so just use the cl

"cake schema run create" doesn't keep my connection argument?!

2008-09-08 Thread avairet
Hi, When I launch "cake schema run create DbAcl -connection club" on a CLI, tables Aros, Acos, Acos_Aros are not created because my "- connection club" setting is not conserved... If I make a "var_dump($this->Schema)" on line 254 of "/cake/console/ libs/schema.php", my "club" setting is OK in "c

Re: soap on cake 1.2

2008-09-08 Thread Marcelius
I wasn't really impressed by all the "PHP to wsdl" converters out there because I just couldn't create complex datastructures with them. So I "manualy" created the wsdl with an eclipse extension: http://wiki.eclipse.org/index.php/Introduction_to_the_WSDL_Editor Zend studio also provides automatic

Re: soap on cake 1.2

2008-09-08 Thread Marcin Domanski
it's rather hard to see any error(whats going on) with debug set to 0... -- Marcin Domanski http://kabturek.info On Mon, Sep 8, 2008 at 10:40 AM, . <[EMAIL PROTECTED]> wrote: > I've also been trying to follow this tutorial and integrate with cake, but > without success. All I see is a blank pa

Re: soap on cake 1.2

2008-09-08 Thread .
Marcelius, how do you generate the wsdl files? do you use jool.nl's wsdl component, or does php's soap extension generate the wsdl files for you? thanks On Mon, Sep 8, 2008 at 2:56 AM, Marcelius <[EMAIL PROTECTED]> wrote: > > Hi > > Don't know the exact problems you have but here's a piece of my

Re: vendor integration question

2008-09-08 Thread .
Adam, that is not the problem I was having. I am calling the library correctly (App::import('Vendor','nusoap',array('file'=>'nusoap/lib/nusoap.php'))... my problem was that one of the library files was returning the error "cannot find the file " (something similar) when it has this line: require_

Re: vendor integration question

2008-09-08 Thread Adam Royle
http://book.cakephp.org/view/538/Loading-Vendor-Files On Sep 8, 6:44 pm, . <[EMAIL PROTECTED]> wrote: > I am trying to put the nusoap library into the vendors area (cake 1.2 rc2) > > so i have vendors/nusoap/lib/... >               vendors/nusoap/samples/client1.php > > in client1.php, i have req

Re: soap on cake 1.2

2008-09-08 Thread Marcelius
Hi Don't know the exact problems you have but here's a piece of my soap implementation. Please note that this is done with php5's sope extension, not nusoap. In my site: domain.com/soapcontroller/wsdl renderes a wsdl file like so: public function wsdl(){

Re: Check out this CakePHP Job Board - Small Problem

2008-09-08 Thread kujina
Hi Wayne After I made my last post I could see that the changes probably should be made in the "view.ctp" file. I put in the code you sugested, (I'm 99.9% sure I did it correctly) but the job listings pages come up completely blank. Is it becuase the syntax (is that what you call it?) has a mista

Re: soap on cake 1.2

2008-09-08 Thread .
david, theoretically there is no problem with soap on cakephp. it's just that i am having trouble integrating it into cake. any help would be appreciated. On Mon, Sep 8, 2008 at 1:40 AM, . <[EMAIL PROTECTED]> wrote: > reference: http://www.oclipa.com/university/nusoap/3.php > > > On Mon, Sep 8, 2

vendor integration question

2008-09-08 Thread .
I am trying to put the nusoap library into the vendors area (cake 1.2 rc2) so i have vendors/nusoap/lib/... vendors/nusoap/samples/client1.php in client1.php, i have require_once('../lib/nusoap.php'); However, this returns an error (cannot find the file nusoap.php in the lib folde

Re: soap on cake 1.2

2008-09-08 Thread .
reference: http://www.oclipa.com/university/nusoap/3.php On Mon, Sep 8, 2008 at 1:40 AM, . <[EMAIL PROTECTED]> wrote: > I've also been trying to follow this tutorial and integrate with cake, > but without success. All I see is a blank page. Any ideas? Here is my code: > > class TestController e

Re: soap on cake 1.2

2008-09-08 Thread .
I've also been trying to follow this tutorial and integrate with cake, but without success. All I see is a blank page. Any ideas? Here is my code: autoRender = FALSE; App::import('Vendor','test',array('file'=>'nusoap/lib/nusoap.php')); // This is location of the remote service $cli

Re: soap on cake 1.2

2008-09-08 Thread David C. Zentgraf
What's the problem with SOAP in Cake? I'm asking because I'll soon have to pull through a project with a tight schedule and I'll be needing SOAP in it. And as people like to say a lot here, there's still PHP in CakePHP, so I was counting on using the PHP SOAP functions without thinking too m

Re: afterDelete question

2008-09-08 Thread alkemann
function delete($id = null) { if (!$id) { $this->Session->setFlash(__('Invalid id for Contact', true)); $this->redirect(array('action'=>'index')); } if ($this->Contact->del($id)) {

Re: Cake 1.1.19 stable

2008-09-08 Thread [EMAIL PROTECTED]
I completely agree One of the main problems I have had is that when working for web agencies they often were not able to 'educate' their clients as they were to afraid they would not work with them if they were opposing them too strongly and would rather accept unreasonable demands or dead lines

soap on cake 1.2

2008-09-08 Thread .
has anyone gotten soap or nusoap to work with cake 1.2? I've been trying to follow this tutorial, but haven't gotten it to work yet. http://bakery.cakephp.org/articles/view/a-component-to-help-creating-soap-services --~--~-~--~~~---~--~~ You received this message