xmlwriter

2008-10-16 Thread Liebermann, Anja Carolin
Hello everybody, hi Franky, Thanks for your reply! So XML seams to be a core helper. But I don't understand from where I get it working. Am I right if I use it in my controller? I tried this in my_controller.php: var $helpers = array('Html', 'Form', 'Javascript', 'Xml');

Re: mod_rewrite problem?

2008-10-16 Thread Arndtinho
Hello, thanks for your answer. What do you mean with .htaccess in your webroot virtual site? I have in my apache config following: AccessFileName .htaccess Or should it be in the virtual host configuration? Regards Arndtinho On 16 Okt., 01:00, francky06l [EMAIL PROTECTED] wrote: Usually

Object not found! error...

2008-10-16 Thread xelios
I am following a tutorial for CakePHP from https:// www6.software.ibm.com/developerworks/education/os-php-cake1/ section3.html I created a view for registration, on submitting it should submit values to the database. But it is displaying error Object not found!. Following is my view code:

AW: Object not found! error...

2008-10-16 Thread Liebermann, Anja Carolin
Hi Mohammad, Have you checked on typos in your object/controller/function name? Common typos are e.g. your model is named Foo $this-data['Foos'] instead of $this-data['Foo'] Or the action goes to foo_controller instead of foos_controller Lastly check your model foo.php on typos. Good hunt!

Re: Data validation from URL

2008-10-16 Thread David C. Zentgraf
Dabble around with the debug() method, like $this-data = $this-Model-find( /* conditions */ ); debug($this-data); You'll find the answer eventually... On 16 Oct 2008, at 16:41, Cody Sortore wrote: Okay, I added this: if ($secretid != /* What Goes Here? */ ) {

Re: Data validation from URL

2008-10-16 Thread Cody Sortore
Okay, I added this: if ($secretid != /* What Goes Here? */ ) { $this-flash(__('Invalid Secret Identification Code', true), array('action'='index')); } Tried several different things, but I'm a noob, which is why I couldn't get it to work in the first place, I was just messing around

Auth-allow() in controller specific cases

2008-10-16 Thread park
Hi, I've got, say, two actions, with exactly the same action name but belong to different controllers. posts/add, comments/add. I want to set: $this-Auth-allow('comments/add'); (while blocking users not logged in from access posts/add) But this syntax does not seem to be supported by Auth

Re: Data validation from URL

2008-10-16 Thread Cody Sortore
Woops... didn't mean to post the same thing again. Thanks, you've set me on the right path at least, I can generally find my way with a little direction. On Oct 16, 2:51 am, David C. Zentgraf [EMAIL PROTECTED] wrote: Dabble around with the debug() method, like $this-data = $this-Model-find(

Re: How to use MySql's CASE WHEN function with CakePhp

2008-10-16 Thread grigri
Possibly, but it's worked for quite some time now. Until recently, cake used raw sql internally for `find('count')`, although now there's a `DboSource::calculate()` method, so I'm not sure. I don't like using `query()` unless it's really necessary; it's nice to get the automagic of `find()`, but

admin routing issue while debug = 0

2008-10-16 Thread park
Using admin routing + .htaccess to restrict admin operations. Works correctly while cake debug is set to 1. When debug = 0, 404 error is returned instead of username/password (define in .htaccess of /admin directory) dialog. Any ideas why? --~--~-~--~~~---~--~~

Quick Tip: How to fix missing table errors.

2008-10-16 Thread [EMAIL PROTECTED]
I have, from time to time, had immense problems running tests on models. I keep getting errors about tables being missing on seemingly any random table, including ones in the core tests. I believe I have found out how these errors occur. They happen when you have tried to run a test with a

fsm automata

2008-10-16 Thread elpaso
Hello, I'm completely new to cake and I'm thinking about how to implement a bunch of complex procedure that should go in my models, the ideal implementation would be a classic finite-state machine automata. Does anybody have any idea or suggestion? For example, I was thinking of using this

Re: EmailComponent - bcc bug using SMTP deliverymethod

2008-10-16 Thread Siegfried Hirsch
Hi everybody, The behavior of bcc addresses being publicly viewed in email send by the EmailComponent is still active. But it still is only happening, when I use SMTP to send the emails. When using MAIL as the delivery method, it should not happen, cause the php mailer may filter this out. Has

Re: Data validation from URL

2008-10-16 Thread David C. Zentgraf
Think twice about what's actually going on in that code... If no $id or $secretid were supplied, you redirect somewhere else. If $this-data is not empty... doesn't matter. Then, last case that always gets triggered if there's ANY $id or $secretid, you fetch the data from the DB and present it

Re: Object not found! error...

2008-10-16 Thread xelios
I didn't find any typo... Following are my files... / */ C:\xampp\htdocs\cake\app\models\user.php ?php class User extends AppModel { var $name = 'User'; } ? /

Re: Handling Auth for users in Different Models (Agent / Client)

2008-10-16 Thread [EMAIL PROTECTED]
Hi, I don't know what your app does but here are some thoughts on your situation. I think you might want to think about creating a common User model. Your existing Client and Agent models could be linked to a User via hasOne or belongsTo. Any common properties can be moved into User along with

Re: xmlwriter

2008-10-16 Thread Siegfried Hirsch
Take a look at this bakery article about Sitemaps, which are dynamisch XML files generated from different models using find('all') http://bakery.cakephp.org/articles/view/automatically-generate-dynamic-sitemaps I think there you have all your answers. On Thu, Oct 16, 2008 at 8:29 AM,

Testing and cake custom installation

2008-10-16 Thread Fran Iglesias
Hi, I have a custom installation of CakePHP in my development setup (mainly to share core and some vendors and to resemble the production setup). Setup is as follows: /Webserver /apps /app1 /app2 /Documents (this is Apache document root

Re: complex query : HABTM Association between multiple model

2008-10-16 Thread bookme
I found all products accordingly users by using Containable behavior. code is: $this-User-contain(array('Product')); debug($this-User-find('all', array('conditions' = array('User.id' = $this-Auth-user('id'); But now don't know how to find all brands accordingly a users product? Is CakePHP

Re: Problem with updating data with HABTM (Posts and Tags).....too much data is deleted from JOIN table.

2008-10-16 Thread [EMAIL PROTECTED]
There is a ticket for this already. I found it yesterday when I was looking into this myself. The problem is new to rc3. Rc2 works just as Cake always has. Add your tests and thoughts there if you can. https://trac.cakephp.org/ticket/5579 About requiring join tables and their pk requirements.

Re: Object not found! error...

2008-10-16 Thread [EMAIL PROTECTED]
I don't see any obvious typo in your classes but one thing popped into my head that I thought I'd ask you. Are you developing in 1.1 or 1.2? IBM had a bunch of tutorials for early Cake 1.1. They do not work as expected on 1.2 because so much has changes in the APIs. /Martin On Oct 16, 10:14 am,

AW: Object not found! error...

2008-10-16 Thread Liebermann, Anja Carolin
Hi Mohammad, On the first glance everything looks well and your files are at the right place. My user model look like this: class User extends AppModel { var $name = 'User'; var $useTable = 'users'; } My users_controller starts the same as yours. Sorry maybe someone else has

Sessions lost due to .htaccess and AJAX

2008-10-16 Thread [EMAIL PROTECTED]
I moved the security to medium. I moved the method to 'database' I have a .htaccess that redirects everything from www.domain.com to www.domain.com/1_00/ If I take the htaccess out, everything works. Otherwise, you can login but all AJAX request fails. AJAX request go to

Re: CakePHP - Warning - Cannot modify header information - headers already sent by

2008-10-16 Thread Marcus Silva
Try removing any hidden character you may have after the php closing tag (?). Example: ?remove anything after the tag Hope it helps Cheers Marcus On Oct 16, 11:31 am, imu [EMAIL PROTECTED] wrote:

Re: Sessions lost due to .htaccess and AJAX

2008-10-16 Thread [EMAIL PROTECTED]
here is my directory structure: www.domain.com/ 1_00/ app/ views/ root/ login.thtml projects/ new.thtml If i create a Session variable in root controller, i cant see it outside. If i create a

Object not found! error...

2008-10-16 Thread Liebermann, Anja Carolin
It tells your model in which table it should look for your users. Anja -Ursprüngliche Nachricht- Von: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von xelios Gesendet: Donnerstag, 16. Oktober 2008 12:29 An: CakePHP Betreff: Re: Object not found! error... var

Re: Object not found! error...

2008-10-16 Thread xelios
I am working on v1.1.20 now I have created a new view for displaying the users, its working fi9. But the problem I mentioned in my earlier posts is still there.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

How to use helpers??

2008-10-16 Thread xelios
Whenever I use helpers, Call to undefined function... error occure. This might be due to declaration issues. I've declared in my controller class. var $helpers = array('Html', 'Form'); but still having problems. --~--~-~--~~~---~--~~ You received this message

Auth: deleted user still logged in

2008-10-16 Thread on24nl
I found a small problem with the Auth component in my latest cake app: -User is logged in -I'm also logged in and I delete the other user -The other (now non-existing) user is still logged in! Why does Auth not check if a User also exists?! How to fix this?

Re: How to use helpers??

2008-10-16 Thread Daniel Hofstetter
Hi, Whenever I use helpers, Call to undefined function... error occure. This might be due to declaration issues. I've declared in my controller class. var $helpers = array('Html', 'Form'); but still having problems. That's the correct way. Can you provide an example that fails? --

Re: internazionalization | gettext not working on production server: any idea?

2008-10-16 Thread cakeFreak
I updated mu i18n lib from trunk, but it didn't work on 64bit Linux/Suse and 64bit Linux/Ubuntu servers I suggested this hack, that made the all thing work. https://trac.cakephp.org/ticket/3729 Dan On Oct 16, 12:06 am, Larry E. Masters aka PhpNut [EMAIL PROTECTED] wrote: Unless you are

Sending config options to fckconfig.js in fckeditor

2008-10-16 Thread bartez
Hey all, I've set up FCKeditor using the following code in my helper: ?php class FckHelper extends AppHelper { var $helpers = array('Javascript'); function load( $template = 'default', $height = '300', $width = '650', $toolbar = 'Default' ) { $jsDS = '/'; //because \' only

Re: mod_rewrite problem?

2008-10-16 Thread Arndtinho
Ok. Thanks. I'll check it out this evening. Arndtinho On 16 Okt., 11:03, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: He wanted you to check if a .htaccess file is present (and readable to the webserver) E:/Pfad/zum/Projekt/.htaccess Another thing that could give a clue is to look at the

Re: Any one Familiar with XML/SWF charts usage in Cakephp

2008-10-16 Thread Daehee
I have the same question. Did you figure this out? On Sep 4, 3:06 am, vibhor [EMAIL PROTECTED] wrote: Hello all, I am looking to integrate the XML/SWF charts(http://www.maani.us/xml_charts/ ) feature in my cakephp application. I have read Chris Hartjes's tutorial

xmlwriter

2008-10-16 Thread Liebermann, Anja Carolin
Hi Siegfried! Good idea! I will inhale this tutorial :-) If I get it right finally I even might write an own tutorial for export ;-) Anja -Ursprüngliche Nachricht- Von: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von Siegfried Hirsch Gesendet: Donnerstag, 16.

Error in $ajax-remoteTimer

2008-10-16 Thread [EMAIL PROTECTED]
i have use $ajax-remoteTimer in my project , in that project my statement like echo $ajax-remoteTimer( array( 'url' = array( 'controller' = 'Users', 'action' = 'liveuser', 1 ), 'update' = 'out2', 'position' =

Re: mod_rewrite problem?

2008-10-16 Thread [EMAIL PROTECTED]
He wanted you to check if a .htaccess file is present (and readable to the webserver) E:/Pfad/zum/Projekt/.htaccess Another thing that could give a clue is to look at the source of the front page of your application. Look at where the css, javascript, images and links point. I would also

Re: Object not found! error...

2008-10-16 Thread xelios
var $useTable = 'users'; Wot is the purpose of above line... --~--~-~--~~~---~--~~ 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: Object not found! error...

2008-10-16 Thread xelios
I am working on v1.1.20 now I have created a new view for displaying the users, its working fi9. But the problem I mentioned in my earlier posts is still there.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: CakePHP - Warning - Cannot modify header information - headers already sent by

2008-10-16 Thread imu
Thanks Marcus Now its working. On Oct 16, 4:05 pm, Marcus Silva [EMAIL PROTECTED] wrote: Try removing any hidden character you may have after the php closing tag (?). Example: ?remove anything after the tag Hope it helps Cheers Marcus On Oct 16, 11:31 am, imu [EMAIL

CakePHP - Warning - Cannot modify header information - headers already sent by

2008-10-16 Thread imu
controller file is messages_controller.php ?php class

Re: How to use helpers??

2008-10-16 Thread Daniel Hofstetter
Hi, My controller file:: // ?php   class TasksController extends AppController {         var $name = 'Tasks';         var $helpers = array('Html', 'Form'); function index() {                 $this-set('tasks',

Re: How to use helpers??

2008-10-16 Thread xelios
My controller file:: // ?php class TasksController extends AppController { var $name = 'Tasks'; var $helpers = array('Html', 'Form'); function index() { $this-set('tasks', $this-Task-findAll()); }

Paginator with multiple parameters

2008-10-16 Thread Liebermann, Anja Carolin
Hello everybody, It looks like I have found a bug : I have a complex query with an action whcih contains several parameters whcih I would liek to keep when I use the sorting functionality in the view. I found a ticket on this: https://trac.cakephp.org/ticket/2099 This seems to solve my

Re: complex query : HABTM Association between multiple model

2008-10-16 Thread [EMAIL PROTECTED]
Hi, I know what query can return my answer..it's here: SELECT `Product`.`id`, `Product`.`product_name`, `Brand`.`brand_name`, `Brand`.`id`, `ProductsUser`.`user_id`, `ProductsUser`.`product_id` FROM `products` AS `Product` JOIN `products_users` AS `ProductsUser` ON (`ProductsUser`.`user_id` = 2

Re: Sessions lost due to .htaccess and AJAX

2008-10-16 Thread [EMAIL PROTECTED]
*If I remove the htaccess, everything works. On Oct 16, 6:26 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: here is my directory structure:www.domain.com/    1_00/        app/             views/                  root/                         login.thtml                  projects/        

Problem with using Helpers Call to undefined method FormHelper::create()...

2008-10-16 Thread xelios
Following is the code of my register.ctp page... / ***/ pPlease fill out the form below to register an account./p ?php echo $form-create('User', array('action' = 'register'));? ?php echo

testAction data not resetting between tests

2008-10-16 Thread Chowsapal
I'm trying to write test cases using testAction, but I can't seem to break down the controller in between tests. Each successive testAction call returns the same exact data, even if I call a completely made up url. I've tried including calls to create/ construct/unset

Re: CAKEPHP Job

2008-10-16 Thread techiguy
Hello Marcus I am intrested to work for you let me know how much you offer if have done all the features for you? On Oct 15, 2:48 pm, marcusgoede [EMAIL PROTECTED] wrote: Hi there, we are a young startup in Germany and develope an internet plattform for flights. we started already

Multilingual Support still not working in RC3

2008-10-16 Thread Mark (Germany)
i hoped this got fixed in RC3, but i had to discover, that MAX/MINLENGTH and BETWEEN are still not validating correctly although i did include the following in bootstrap: App::import('Core','Multibyte'); it does not change the normal str functions to mb_str functions i do NOT understand the

Re: Object not found! error...

2008-10-16 Thread mark_story
Also good to note that you should be building your form inputs with the cake html and form helpers if you want the forms to work, as in the tutorials. -Mark On Oct 16, 9:22 am, scs [EMAIL PROTECTED] wrote: if your using cake 1.1 like you said above than your view has the wrong extension.

Re: complex query : HABTM Association between multiple model

2008-10-16 Thread bookme
Hi, I know what query can return my answer..it's here: SELECT `Product`.`id`, `Product`.`product_name`, `Brand`.`brand_name`, `Brand`.`id`, `ProductsUser`.`user_id`, `ProductsUser`.`product_id` FROM `products` AS `Product` JOIN `products_users` AS `ProductsUser` ON (`ProductsUser`.`user_id` = 2

Re: Object not found! error...

2008-10-16 Thread scs
if your using cake 1.1 like you said above than your view has the wrong extension. C:\xampp\htdocs\cake\app\views\users\register.ctp should be C:\xampp\htdocs\cake\app\views\users\register.thtml On Oct 16, 7:55 am, Liebermann, Anja Carolin [EMAIL PROTECTED] wrote: It tells your model in which

Re: Any one Familiar with XML/SWF charts usage in Cakephp

2008-10-16 Thread Daehee
My issue is.. I have the controller and views working to properly output xml data at a particular URL using routing. However, XML/SWF needs a physical file location for the xml_source being passed through FlashVars. How to go about doing this? On Oct 16, 10:08 am, Daehee [EMAIL PROTECTED] wrote:

Naming Conventions

2008-10-16 Thread MDB
Hello all, I have a cake application that I need to add an existing table to that doesn't follow the cake naming convention and I am unable to change the table name so my question is, how do I work around this. For example, the table name is service (rather than services) so do to this, I can

Re: testAction data not resetting between tests

2008-10-16 Thread mark_story
testAction simulates a url request, there is no need to unset the controller as it doesn't get set to the test case. Should the results come back differently. Please explain more. -Mark On Oct 16, 11:40 am, [EMAIL PROTECTED] wrote: I am not sure that i understand what you are testing? I

Re: testAction data not resetting between tests

2008-10-16 Thread xavierunited
Well with urls always changeing wont the results change anyways? On 10/16/2008, mark_story [EMAIL PROTECTED] wrote: testAction simulates a url request, there is no need to unset the controller as it doesn't get set to the test case. Should the results come back differently. Please explain

Re: testAction data not resetting between tests

2008-10-16 Thread xavierunited
I am not sure that i understand what you are testing? I undertand the problem just not what you are testing. On 10/16/2008, Chowsapal [EMAIL PROTECTED] wrote: I'm trying to write test cases using testAction, but I can't seem to break down the controller in between tests. Each successive

Re: Index libraries for Word, Pdf, Rtf, etc... files

2008-10-16 Thread xavierunited
Good luck finding that your request is hard to handel concidering the compatibility issue. But i suppose that we could look around and get back to you. Why does it have to be on linux.. what is the problem with wxp? On 10/16/2008, oleonav [EMAIL PROTECTED] wrote: Hi there, In my

Index libraries for Word, Pdf, Rtf, etc... files

2008-10-16 Thread oleonav
Hi there, In my development setup I am using some shell programs to index different kind of files via the exec command in php/cake. for example: - Word files - using antiword - Pdf files - using pdftotext This works fine. But now we have to move the app to a production environment which does

Re: Auth: deleted user still logged in

2008-10-16 Thread xavierunited
Well it could be a little hack. When you delete the user make sure that user is first sighed out or the information may still be there allowing that user to delete you or change info. On 10/16/2008, on24nl [EMAIL PROTECTED] wrote: I found a small problem with the Auth component in my latest

Re: Auth: deleted user still logged in

2008-10-16 Thread on24nl
That's the whole problem: how to sign him out? Cake should check if the user exists on each request. Otherwise this is a big security hole! On 16 okt, 18:33, [EMAIL PROTECTED] wrote: Well it could be a little hack. When you delete the user make sure that user is first sighed out or the

Re: Auth: deleted user still logged in

2008-10-16 Thread xavierunited
Go under his account and delete him! Will that work? On 10/16/2008, on24nl [EMAIL PROTECTED] wrote: That's the whole problem: how to sign him out? Cake should check if the user exists on each request. Otherwise this is a big security hole! On 16 okt, 18:33, [EMAIL PROTECTED] wrote: Well

Re: Naming Conventions

2008-10-16 Thread spub
Should be able to do this in the model. Class Service extends AppModel { var $useTable = 'service'; } On Oct 16, 4:48 pm, MDB [EMAIL PROTECTED] wrote: Hello all,  I have a cake application that I need to add an existing table to that doesn't follow the cake naming convention and I am

Re: Naming Conventions

2008-10-16 Thread on24nl
Hello, Just specify it in your model. class Example extends AppModel { var $useTable = 'othername'; } Regars, Jeroen On 16 okt, 17:48, MDB [EMAIL PROTECTED] wrote: Hello all,  I have a cake application that I need to add an existing table to that doesn't follow the cake naming convention

Re: Naming Conventions

2008-10-16 Thread MDB
Thanks On Oct 16, 12:44 pm, on24nl [EMAIL PROTECTED] wrote: Hello, Just specify it in your model. class Example extends AppModel { var $useTable = 'othername'; } Regars, Jeroen On 16 okt, 17:48, MDB [EMAIL PROTECTED] wrote: Hello all,  I have a cake application that I need to

Re: testAction data not resetting between tests

2008-10-16 Thread Chowsapal
Right now I'm just trying to test the view vars depending on whether or not you post data to the url, but all successive calls to testAction are getting the same (original) results. It sounds like you're saying I shouldn't have to do anything to get fresh results. Any idea why I'm getting

Re: Any one Familiar with XML/SWF charts usage in Cakephp

2008-10-16 Thread [EMAIL PROTECTED]
I have not done exactly that but I have done the same type of thing with my own Flash-applications and even a java-applet You have the view for the page displaying the chart. All this does is embed the chart and create the link to the chart xml. From the sample.html it would be altering the

Re: testAction data not resetting between tests

2008-10-16 Thread xavierunited
Yes or the cookies. Delete them. On 10/16/2008, Chowsapal [EMAIL PROTECTED] wrote: Right now I'm just trying to test the view vars depending on whether or not you post data to the url, but all successive calls to testAction are getting the same (original) results. It sounds like you're

Re: Any one Familiar with XML/SWF charts usage in Cakephp

2008-10-16 Thread Sam Sherlock
If you make your controller export xml to a location app/webroot/xml/ then make an action to gather then you can have flash access the exported file. set the base param of the flash object to you webroot, setting the file passed to flash as something like xml/exported-data.xml I have made a

'page' option with find()

2008-10-16 Thread Dez
In the Cake Book and the Cake api 'page' is listed as a possible option for find queries. Neither place really explains what that is. I assumed it would serve as a manual way of dealing with pagination. Since I couldn't figure out how to make the paginator work with my site's architecture, I was

Re: mod_rewrite problem?

2008-10-16 Thread Arndtinho
Hello, the .htaccess file is available and readable. I also changed the webroot path and enable RewriteLog logs/rewrite.log but the result is the same and the logfile ist empty. Regards Arndtinho On 16 Okt., 15:50, Arndtinho [EMAIL PROTECTED] wrote: Ok. Thanks. I'll check it out this

Re: testAction data not resetting between tests

2008-10-16 Thread Chowsapal
Clearing the cookies and cache didn't help. For now I'm just running the action of the controller instance I created and checking the - viewVars, but I'm not sure how well this method will hold up with fixture data. On Oct 16, 2:24 pm, [EMAIL PROTECTED] wrote: Yes or the cookies. Delete them.

Join Table Problem

2008-10-16 Thread MDB
Hello all, I have 3 tables: scheduler_customers_services (customer_id int, service_id int) scheduler_services (id int) scheduler_customers (id int) My models looks something like this: class Service extends AppModel { var $name = 'Service'; var $useTable = 'scheduler_services';

Re: testAction data not resetting between tests

2008-10-16 Thread xavierunited
ok i will take a look at this when i get back to my office. On 10/16/2008, Chowsapal [EMAIL PROTECTED] wrote: Clearing the cookies and cache didn't help. For now I'm just running the action of the controller instance I created and checking the - viewVars, but I'm not sure how well this

Re: testAction data not resetting between tests

2008-10-16 Thread Chowsapal
Aha, found the bug related to this. Our code was not totally up-to- date, we were missing ClassRegistry::flush() from this changeset: https://trac.cakephp.org/changeset/7470 Ethan On Oct 16, 3:22 pm, [EMAIL PROTECTED] wrote: ok i will take a look at this when i get back to my office. On

Re: testAction data not resetting between tests

2008-10-16 Thread xavierunited
OH GREAT On 10/16/2008, Chowsapal [EMAIL PROTECTED] wrote: Aha, found the bug related to this. Our code was not totally up-to- date, we were missing ClassRegistry::flush() from this changeset: https://trac.cakephp.org/changeset/7470 Ethan On Oct 16, 3:22 pm, [EMAIL PROTECTED] wrote: ok

Re: Auth: deleted user still logged in

2008-10-16 Thread James K
I disagree. That is an unnecessary query on every page - it's the reason we have session states. This is something that foreign key constrains can solve at the database level. The user shouldn't be able to submit or change any information if their user id does not exist. - James On Oct 16,

Re: mod_rewrite problem?

2008-10-16 Thread Arndtinho
Hello, I find out that's not a mod_rewrite problem. If I set ?php echo $html-css('global'); ? instead ?= $html-css('global'); ? or ?php echo $html-link(... ); ? instead ?= $html-link(... ); ? the app is working fine. But why? Regards Arndtinho On 16 Okt., 11:03, [EMAIL PROTECTED] [EMAIL

Re: Join Table Problem

2008-10-16 Thread MDB
Okay, I changed the customer hasand belongstomany to this: var $hasAndBelongsToMany = array( 'Service' = array( 'className' = 'Service', 'joinTable' = 'scheduler_customers_services', 'foreignKey' =

Re: Auth: deleted user still logged in

2008-10-16 Thread xavierunited
Why not? On 10/16/2008, James K [EMAIL PROTECTED] wrote: I disagree. That is an unnecessary query on every page - it's the reason we have session states. This is something that foreign key constrains can solve at the database level. The user shouldn't be able to submit or change any

Re: testAction data not resetting between tests

2008-10-16 Thread mark_story
I was going to say, I was pretty sure I fixed this a while back, and there are tests for it now as well. -Mark On Oct 16, 3:41 pm, [EMAIL PROTECTED] wrote: OH GREAT On 10/16/2008, Chowsapal [EMAIL PROTECTED] wrote: Aha, found the bug related to this. Our code was not totally up-to-

Re: mod_rewrite problem?

2008-10-16 Thread Arndtinho
Hello, it's me again. I find it out!!! The problem is the php short_open_tag-property. I set it to 'on' and now everything is fine. Regards Arndtinho On 16 Okt., 21:43, Arndtinho [EMAIL PROTECTED] wrote: Hello, I find out that's not a mod_rewrite problem. If I set ?php echo

Re: Any one Familiar with XML/SWF charts usage in Cakephp

2008-10-16 Thread BrendonKoz
I hate when people do exactly what I'm going to do, but I wouldn't post if I didn't think it really was helpful (that is, suggest something completely different). Unless you are using the paid-for version of that charting script (XML/ SWF), it may be easier to get Open Flash Chart (http://

Re: Any one Familiar with XML/SWF charts usage in Cakephp

2008-10-16 Thread Sam Sherlock
Theres more than one way to do it - the old perl adage :) I was using http://www.amcharts.com/ beofre that I tried jquery flot - but urgh not a lot of joy with that 2008/10/16 BrendonKoz [EMAIL PROTECTED] I hate when people do exactly what I'm going to do, but I wouldn't post if I didn't

adding attributes to select box options

2008-10-16 Thread tnizzle
I need to add specific attributes to select box options and I havent found any info on this. Is there a way to add a class to individual options? Instead of: select name=selectbox option value=1Option 1/option /select I need to add a class to the option like so: select name=selectbox option

Cake is incorrectly parsing URL's or I'm doing something wrong

2008-10-16 Thread MaxCzap
I'm having some trouble with Cake parsing the URL for my RSS feed. I've got a controller that looks like this: ?php class RssController extends AppController { var $name = 'Rss'; var $helpers = array('Time'); var $uses = array('Article'); /* RSS Feed: All

Re: Cake is incorrectly parsing URL's or I'm doing something wrong

2008-10-16 Thread Bernhard J. M. Grün
Hi! This could be a problem with the inflections (singular/plural of the word rss). Maybe you should try to add rss to config/inflections.php -- Bernhard J. M. Grün 2008/10/16 MaxCzap [EMAIL PROTECTED] I'm having some trouble with Cake parsing the URL for my RSS feed. I've got a controller

Re: Cake is incorrectly parsing URL's or I'm doing something wrong

2008-10-16 Thread Bernhard J. M. Grün
Sorry for the double post. Another way would be to rename your controller to feeds and use the router to map to rss. -- Bernhard J. M. Grün 2008/10/16 Bernhard J. M. Grün [EMAIL PROTECTED] Hi! This could be a problem with the inflections (singular/plural of the word rss). Maybe you should

validating checkboxes in habtm

2008-10-16 Thread cem
Hi ; I am trying to build a freelancer script with cakephp . I made categories and projects. One project can have more than one category so I set the relationship of categories and projects to habtm . I hope everything is right until here because I spend really a big time for that . Anyway .

Newbie: Moving away from the tutorial apps and encountered first issue

2008-10-16 Thread WebbedIT
Hi all, I have spent the last 3 days reading book.cakephp.org for 1.2, although I must admit to starting to skim through chapters from section 6 onwards (it's always there for reference). I worked through the Blog and Acl Controlled App tutorials and whilst I had a few problems with the second

Re: Cake is incorrectly parsing URL's or I'm doing something wrong

2008-10-16 Thread MaxCzap
Hi Bernhard, Thanks for the response. If I'm changing the inflections, would I add '.*rss' to the uninflectedPlural array? I tried that and it didn't work. Also, I think if that was the the problem I would have gotten a reference to a missing Controller, not just to Controller. I thought

Re: Cake is incorrectly parsing URL's or I'm doing something wrong

2008-10-16 Thread Bernhard J. M. Grün
Hi! Just 'rss' in uninflectedPlural should be enough . But I really don't know if that solves your problem. In fact naming your controller feeds is much better as you might have to support atom feeds too. ;-) I would not recommend that you spend too much time with that problem. Just rename it and

Re: complex query : HABTM Association between multiple model

2008-10-16 Thread villas
FYI typo 'recersive' = 'recursive' On Oct 15, 8:18 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Sorry, I forget that I used this solution but could not succeed $brands = $this-User-Product-Brand-find('all',array(                                                       'fields' =

Re: adding attributes to select box options

2008-10-16 Thread tnizzle
Found the answer in case anyone has the same question. I had to look at the __selectOptions() code in /cake/libs/views/helpers/form.php to figure it out. Instead of using the key=value options like this: $attributes['options'] = array('1'='Option 1'); you would use value, name and class

Re: testAction data not resetting between tests

2008-10-16 Thread xavierunited
So are there anymore issues or problems? On this topic? On 10/16/2008, mark_story [EMAIL PROTECTED] wrote: I was going to say, I was pretty sure I fixed this a while back, and there are tests for it now as well. -Mark On Oct 16, 3:41 pm, [EMAIL PROTECTED] wrote: OH GREAT On 10/16/2008,

Re: complex query : HABTM Association between multiple model

2008-10-16 Thread Joel Perras
Try: $this-User-find('all', array( 'contain' = array('Brand' = array('Product')) )); 1) Read the Book. Chances are it'll have the information you're looking for. http://book.cakephp.org/view/474/Containable 2) Look at the test cases for the behavior in question.

Accessing Cake elements in the webroot directory?

2008-10-16 Thread aapljack
I have installed a Wordpress blog alongside a Cake app. I have the Wordpress files in the webroot (app/webroot/articles/) directory of the Cake app. I have taken my elements code and built templates inside the Wordpress directory. I would rather render the elements like with the Cake layout

Re: Cake is incorrectly parsing URL's or I'm doing something wrong

2008-10-16 Thread Adam Royle
What I would do is add a feed() action into your Articles controller. Then in your routes.php add: Router::parseExtensions('rss'). Then you just call it like... /articles/feed.rss And it all works, assuming you've got the rss layout and stuff like that. Then you can change the url using

bake script doesn't save my relations

2008-10-16 Thread djXternal
Hey guys, I am just getting started using the bake script on windows, everything seems to be going great except after baking when I view my project. None of my tables display any relations that they should have. I bake in this order: Models of all tables, Controllers of all Models, Views of all

  1   2   >