Re: CakePHP 1.3.8 - Editing user info causes 404

2016-05-03 Thread Josh R
->data = $this->User->find('first', array('conditions' => array("User.user_id" => $id))); $this->set('crumb', array("Utilisateurs" => array("action" => "view_all_users"), "# " . $id => array("action" => &q

CakePHP 1.3.8 - Editing user info causes 404

2016-05-02 Thread Josh R
Form->input("...");, etc...* Form->end("Enregistrer"); ?> I was told that this form was working properly a couple months ago (I just recently have been looking into this issue), and then one day the saving of the form stopped. Any help is greatly appreciated. I can also

Re: cakephp with jquery datatable

2013-04-15 Thread Josh
Hi.. how did you use jquery datatables in cakephp? On Wednesday, October 31, 2012 7:33:49 PM UTC-6, Panda Taruma wrote: iI am using jquery datatable. successfully .. but the data show a maximum of 100 rows.. anybody can share to me?? -- Like Us on FaceBook https://www.facebook.com/CakePHP

Fuel UX in cake

2013-03-05 Thread Josh
Hello i want to integrate Fuel UX (http://exacttarget.github.com/fuelux/) to my cake project... anybody has try that?? Thanks! -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the

Like form inside a html table with twitter bootstrap

2013-03-04 Thread Josh
Hello i'm looking something like this: http://www.cniska.net/yii-bootstrap/#tbGridView if you can see it in the last table (Striped, bordered and condensed) is a form text and if you put some info the table changes filtering the info, is there some plugin or something to do this in cake?

Best way to get Twitter bootstrap working!

2013-01-17 Thread Josh
Hi everyone i'm searching to find the best way to get Bootstrap working fine in cakephp? Thanks. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group.

SQL Server, Linux, CakePHP 2

2012-10-01 Thread Josh Becker
Can anyone confirm if this is actually possible? Or has anyone been able to do it? Leveraging https://github.com/rchavik/datasources/tree/mssql-2.0 , ODBC, freedts, anything? I've been searching + trying different things for a few days now and have read so many different articles. I was

Headers already sent using DOMPDF in view

2012-05-18 Thread Josh M
Hello all, I am having issues using the DOMPDF pdf generation library in my Cake 2.1 application. I am building an inventory management application for use at my company and I am trying to dynamically generate pdfs my users can print as stock labels. However, when I attempt to stream to

Re: Headers already sent using DOMPDF in view

2012-05-18 Thread Josh M
On May 18, 2:28 pm, AD7six andydawso...@gmail.com wrote: On Friday, 18 May 2012 18:09:35 UTC+2, Josh M wrote: Hello all,      I am having issues using the DOMPDF pdf generation library in my Cake 2.1 application.  I am building an inventory management application for use at my company

How to use HTTPS in cakephp

2012-04-10 Thread Josh
Hello everyone, i want to use https in cakephp how can i use that? do i need to use some security component? or do i need to change the route.php?? Thanks in advance. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site

Re: How to use HTTPS in cakephp

2012-04-10 Thread Josh
consult on how to install and setup the certificates, how to make your apache route the https connection. if that all works, your cake app will work without any configuration at all. Am Dienstag, 10. April 2012 23:37:29 UTC+2 schrieb Josh: Hello everyone, i want to use https in cakephp how

Error Handler (Email not exist)

2012-01-06 Thread Josh
Hi, i'm a beginner with cake and i have this problem when i try to send an email and the email that i suppost to send it is misspelled or doesn't exists i get an error how can i handler errors in cake 2.0?? where can i redirect to a page? Thanks. -- Our newest site for the community: CakePHP

CakePHP core tests are failing tests from clean install

2011-07-06 Thread Josh
I've just downloaded Cake PHP 1.3, and installed SimpleTest 1.0.1 into the vendors directory. When I run cake testsuite core all I get the following error: Running core all PHP Fatal error: Cannot redeclare class Article in /Users/../cake/tests/cases/libs/model/models.php on line 283 If I

Re: cakephp Messaging sysytem

2011-02-23 Thread Josh
Hey euromark, That looks like exactly what I'm trying to do. Could you also let us know what columns are in each table? I'm sort of following your logic, but not 100% and I think seeing the table columns would help a lot. ~Josh -- Our newest site for the community: CakePHP Video Tutorials

Re: cakephp Messaging sysytem

2011-02-23 Thread Josh
So to generate a user's inbox, I'm guessing you would select all of the conversation_id's from the conversation_users table and save them to an array. Then you would select the messages from the messages table where the conversation_id is in the array you made that contains all of the

book.cakephp.org not showing table of contents?

2011-02-15 Thread Josh Prowse
know what's going on here? I'm happy to provide more info if it will help debug this. Thanks, -Josh -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related

Complex find neighbors query

2010-08-16 Thread Josh K
I have a query that outputs a paginated list of records based on a staff member's region (comprised of states): --- $this-paginate = array('fields'=array('Application.id'),'conditions'='Application.statuslist_id =

Re: Complex find neighbors query

2010-08-16 Thread Josh K
It seems like my problem is that find neighbors is ignoring 'value' = $id. The $id is set to 8997, but it's returning 11 and 14 and the prev and next options in the array. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You

Form Helper set class value of each option in Drop down menu

2010-06-24 Thread Josh K
Using the form helper ?php $colors = array( 'status1' = 'status1', 'status2' = 'status2', 'status3' = 'status3' ); print $form-select('Statuslist/statuscss', $colors, $this- data['Statuslist']['statuscss'], '', false); ? outputs select name=data[Statuslist][statuscss] 0=0 id=StatuslistStatuscss

Two CakePHP installations with WAMP Server

2010-06-14 Thread Josh K
I have two CakePHP installations in separate folders. Each folder has its own core and application files. Both applications are the same application at separate stages of development, but use different databases. I plan to eventually merge them into the same repository. The problem is that one

Model problem with Cake Bake All underscores

2010-05-02 Thread Josh
I hope someone can help me. I am thoroughly getting irritated with cake bake all. I have a table named members. In inside this table I have a field ref_membership_id. I have a table ref_memberships. When I do a cake bake all Member I get this error: Error: Missing database table 'refs' for

Re: Fixture not using Model useTable

2010-04-10 Thread Josh
Thanks for your response. I have been clearing cache periodically and my debug is set to 2. I believe that when running simpleTest, cake flashes the cache automatically at debug = 2 but I have been clearing it myself just to be sure. No luck still. Any other ideas? Check out the new CakePHP

Re: Fixture not using Model useTable

2010-04-10 Thread Josh
I just solved it after a miserable 3 hours of trouble-shooting. SimpleTest seems to have a flaw. It has two different methods for determining the test_suite table name. During table creation and insertion of fixture records, it uses the test model name property. During subsequent interaction with

Fixture not using Model useTable

2010-04-09 Thread Josh
Hello (help!!!), I had to rename a table in my database. I was able to specify the useTable in my model so there was no significant knock-on from this change. But, my unit tests won't recognize the new table name during table creation. I can see in the SQL dump that the old table has been

Re: try/catch action

2010-03-27 Thread Josh
(Exception $e) {                 $this-_throwError($e-getMessage());         } } protected function _throwError($msg) {         echo json_encode(array(                 'error' = true,                 'message' = $msg         )); } On Mar 24, 1:11 pm, Josh joshs.silver...@gmail.com wrote

Re: try/catch action

2010-03-24 Thread Josh
beforeFilter method: [code] if (!in_array($this-params['action'], get_class_methods($this))) {    do your error processing} [/code] or even better, you can try to make your own cakeError processing. See:http://book.cakephp.org/view/154/Error-Handling Enjoy,    John On Mar 24, 6:43 am, Josh

Re: try/catch action

2010-03-24 Thread Josh
CakeErrors and Exceptions. Does anybody have any comments on using try/catch in the dispatcher as a backstop for uncaught exceptions? On Mar 24, 11:28 am, Josh joshs.silver...@gmail.com wrote: The exceptions wouldn't be generated by a missing method. They are often generated by contacting other

Re: try/catch action

2010-03-24 Thread Josh
()                 ));         } } On Mar 24, 8:47 am, Josh joshs.silver...@gmail.com wrote: I've looked into the Cake Error Handling. Without try/catch it seems like there is a big loss in functionality. Exceptions allow you to handle unexpected behaviors outside of a normal case flow. CakeErrors seem intended

try/catch action

2010-03-23 Thread Josh
the client-side error handling. How can I do this without wrapping the Action call with a try/catch in the cake dispatcher ($controller-dispatchMethod($params['action'], $params['pass']);) Does anybody have a suggestion or another workable strategy for gaining this functionality? Josh Check out

Keeping State

2010-02-22 Thread Josh LaMar
Hi all, This is my first post. I am new to CakePHP but I have experience programming in PHP and Python/CGI. Anyways I want to get comfortable switching over to CakePHP by developing a simple program that keeps state - let's say a counter. The counter can be a button that increases the state

Re: App::import at the beginning of a file?

2010-01-13 Thread Josh
thanks Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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

cache filenaming

2010-01-13 Thread Josh
i have a cache engine set up but i'm still working out the filename format. I was thinking something like: microtime() - md5($userId) - $datatype is there a significant performance issue with longer filenames? these would be around 35 chars. i was hoping to keep the microtime as-is to facilitate

App::import at the beginning of a file?

2010-01-07 Thread Josh
Does anybody have an opinion on using App::import for an abstract base class before defining the concrete sub-class? It seems like a way to avoid including all abstract parents before creating a concrete instance... but it violates good OO practices it seems? Do people have an opinion on this?

Re: UML

2009-12-31 Thread Josh
thanks On Dec 31, 12:17 am, Abdul Rahman Riza abdulrahmanr...@gmail.com wrote: try Umbrello 2009/12/31 Josh joshs.silver...@gmail.com Does anybody have a recommendation for a good UML tool? Do many of you make UML diagrams of your more complex web apps? Check out the new CakePHP

Managing lots of components? Namespaces? PEAR?

2009-12-31 Thread Josh
I was thinking of making an upgrade to PHP 5.3.1 and using the namespace support. Any suggestions? I imagine App::import would work fine, no? Does anybody have any other suggestions for managing lots of components? The PEAR method violates cake naming conventions. Please let me know if anybody

UML

2009-12-30 Thread Josh
Does anybody have a recommendation for a good UML tool? Do many of you make UML diagrams of your more complex web apps? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the

Re: using the session object

2009-12-24 Thread Josh
That sounds like a good solution to me. Thanks to both of you. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send

using the session object

2009-12-23 Thread Josh
I have a fairly large array that I would like to access across http requests in a given session. Is there a performance disadvantage to putting this in the session object? The other option it seems is to put the data in the db, but I have no need for this data to persist across sessions, so it

CakePHP Modified and Created GMT Time

2009-12-07 Thread Josh K
When CakePHP automatically updates the modified and created columns (http://book.cakephp.org/view/69/created-and-modified), it uses the server's timezone, and not the GMT timezone (i.e - gmdate(), etc.). Why is this? If I were to move to a server in a different timezone, I would have to adjust

changing model properties for recursive finds

2009-11-20 Thread Josh
Hello, I was wondering if there is a prettier way to do this: $this-Ielement-Mem-hasMany['Rep']['order'] = 'created DESC'; $this-Ielement-Mem-find(... It seems from the cake documentation I should be able to do something like: $this-Ielement-Mem-Rep-order = 'created

Re: Table join confusion...

2009-11-20 Thread Josh
easy way to achieve what you are looking for. Josh On Nov 20, 2:52 pm, Dave davidcr...@gmail.com wrote: Probably because if you follow naming convention cake handles all of the necessary joins for you behind the scenes.  You should definitely check your recursive value as the previous poster

Class organization and logic encapsulation

2009-11-18 Thread Josh
and component. What solutions have other people come up with? Josh -- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-...@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr

Re: Class organization and logic encapsulation

2009-11-18 Thread Josh
doesn't seem to matter all that much. I hope to get some feedback. Thanks On Nov 18, 1:31 pm, Josh joshs.silver...@gmail.com wrote: Hello, I have a bit of an organization problem I am coming up against, and I wanted to see how other developers have handled similar problems. I have

Re: Table join confusion...

2009-11-18 Thread Josh
Hello, Have you set recursive to 2 in your find options array (http:// book.cakephp.org/view/439/recursive)? When querying your User model, that should get you the profile and infogroups. As for joining Information to your infogroups, I am not sure if recursive = 2 will automatically join to

Re: CakeFest IV - America - Help us pick a location!

2009-11-16 Thread Josh
That pitch for New Orleans definitely caught my eye. Austin and Seattle sound nice too. On Nov 13, 11:19 pm, BrendonKoz brendon...@hotmail.com wrote: Although I live east coast, I'd be more apt to go if it was some place warm/tropical.  Once you're in DC, it's not bad, but getting there if

Paginator Jump to Page text box

2009-11-03 Thread Josh K
I'm using the paginator helper in CakePHP to both sort columns and move between pages. I've modified $paginator-counter() in the Cake libs to echo something like Viewing page input type=text value=$pagenumber of 167. I want to allow my users to jump to any page by typing it in the textbox

Re: cakephp.org hacked?

2009-11-03 Thread Josh K
I agree. This theme has me worried. Halloween is past anyway. On Nov 3, 2:50 pm, on24 on2...@gmail.com wrote: Hmmm, I just don't like this funny theme. My first thought was CakePHP gone?! Too bad. Let's check Code Igniter then. Serious things like frameworks should not try to be funny. I

CakePHP + Python's scipy/numpy/matolab/etc?

2009-11-01 Thread Josh
Hello, I've got a question about mixing languages in a project: I am using Cake on an App and it is going quite well. However, I now need to do some statistical analysis/curve fitting/advanced plotting/ matrix manipulation/object difference calc/etc. In retrospect, I should have done this

app/webroot path missing using default mod_rewrite setup

2009-10-13 Thread Josh K
When I enabled mod_write in CakePHP, I set my .htaccess files according to http://book.cakephp.org/view/37/Apache-and-mod_rewrite-and-htaccess. Accessing the URLs work fine with this default setup. However, $webroot now = /, which means paths using the webroot variable are incorrect:

Re: app/webroot path missing using default mod_rewrite setup

2009-10-13 Thread Josh K
in the controllers. On Oct 13, 10:08 am, brian bally.z...@gmail.com wrote: On Tue, Oct 13, 2009 at 11:23 AM, Josh K joshkrae...@gmail.com wrote: When I enabled mod_write in CakePHP, I set my .htaccess files according tohttp://book.cakephp.org/view/37/Apache-and-mod_rewrite-and-htaccess

Remove index.php from URLs with Mod_Rewrite

2009-10-06 Thread Josh K
My Cake app is set up with mod_rewrite like this: http://www.domain.org/index.php/page Is there a way I can remove the index.php part with mod_rewrite so that my urls would look like this?: http://www.domain.org/page Here's my three .htaccess files: .htaccess RewriteEngine on

Re: Remove index.php from URLs with Mod_Rewrite

2009-10-06 Thread Josh K
I do have mod_rewrite enabled. On Oct 6, 1:56 pm, Miles J mileswjohn...@gmail.com wrote: It should do it automatically, you must not have mod_rewrite enabled? On Oct 6, 1:48 pm, Josh K joshkrae...@gmail.com wrote: My Cake app is set up with mod_rewrite like this:http://www.domain.org

Re: Using a page outside of CakePHP

2009-10-04 Thread Josh K
/posts/using-cakephp-in-external-php-systems-cmss-weblogs-etc:480f4dd5-ed94-4186-acda-4443cbdd56cb Thanks. On Oct 3, 9:19 am, brian bally.z...@gmail.com wrote: On Sat, Oct 3, 2009 at 2:54 AM, Josh K joshkrae...@gmail.com wrote: Thanks for the reply.  I would actually like to use the two pages

Re: Using a page outside of CakePHP

2009-10-03 Thread Josh K
would I need to do this? On Oct 2, 8:54 pm, brian bally.z...@gmail.com wrote: On Fri, Oct 2, 2009 at 11:09 PM, Gonzalo Servat gser...@gmail.com wrote: On Sat, Oct 3, 2009 at 1:01 PM, Josh K joshkrae...@gmail.com wrote: Is it possible to use a page outside of a CakePHP application? All

Using a page outside of CakePHP

2009-10-02 Thread Josh K
Is it possible to use a page outside of a CakePHP application? All but two pages of my Cake app require authentication. I have two public forms that submit data to the application. Is it possible to do an include of these pages outside of the application elsewhere on my server? If so, are there

Documenting tools for final projects

2009-09-26 Thread Josh
Hello, What are peoples preferences for PHP Documentation tools? phpdoc? Are there IDEs that do it automatically? Is there any solution that works particularly well with cake? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to

CakePHP App Setup on Shared Hosting Subdomain

2009-09-21 Thread Josh K
I have search the group here and looked at articles about getting a Cake installation to work with shared hosting (Hostmonster.com) on a subdomain. Here's what my .htaccess files look like: http://bakery.cakephp.org/articles/view/mod-rewrite-on-godaddy-shared-hosting I know that I have

Re: CakePHP App Setup on Shared Hosting Subdomain

2009-09-21 Thread Josh K
I should also add that this is not a new application, but an existing application that is being deployed from a dedicated testing server. On Sep 21, 7:21 am, Josh K joshkrae...@gmail.com wrote: I have search the group here and looked at articles about getting a Cake installation to work

Re: multiple relations to the same model

2009-09-15 Thread Josh
ideas on that one? Thanks again. On Sep 15, 7:55 am, brian bally.z...@gmail.com wrote: Use bindModel() and/or unbindModel() where appropriate. On Tue, Sep 15, 2009 at 12:06 AM, Josh joshs.silver...@gmail.com wrote: Hello, I have a question about multiple relations to the same model (http

Re: multiple relations to the same model

2009-09-15 Thread Josh
Thanks a lot Brian. That works for me but I need to create a new relation. Any way to specify an existing relation by its alias in bindModel or in the save function? I don't see anything like that in the documentation. Thanks a lot. Josh On Sep 15, 7:55 am, brian bally.z...@gmail.com wrote

multiple relations to the same model

2009-09-14 Thread Josh
Hello, I have a question about multiple relations to the same model (http:// book.cakephp.org/view/851/Multiple-relations-to-the-same-model) I have two tables, Infos and Ielements. Ielement belongsTo Info and Ielement hasAndBelongsToMany Info (and vica versa). Both relations work WHEN THE

Possible Bug - ajax-form - update option

2009-08-17 Thread Josh
my model and action names): http://book.cakephp.org/view/628/form Can anybody get update to work from the ajax form method? If not, I'll report it as a possible bug. Josh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Model Relationships

2009-08-16 Thread Josh
Hi, I am setting up the tables/models for a new app and I've hit a sticking point. I am setting up three tables right now: datatypes: This table provides a list of the names incoming data types. datatypes_validations: This table links the two, allowing data types to have multiple validation

Re: Model Relationships

2009-08-16 Thread Josh
I was just reading the documentation on model associations... I need HABTM associations to use a join table... On Aug 16, 6:48 pm, Josh joshs.silver...@gmail.com wrote: Hi, I am setting up the tables/models for a new app and I've hit a sticking point. I am setting up three tables right now

Re: Model Relationships

2009-08-16 Thread Josh
Hmm... it turns out that the errors I was getting were actually be generated by my use of Validation as a model name for the validation rules. That class is already taken. I still changed over to HABTM relationships for better functionality. On Aug 16, 9:58 pm, Josh joshs.silver...@gmail.com

Re: HTML helper in function?

2009-08-12 Thread Josh
of curiosity. @Grigri - Ultimately, a helper makes most sense, I agree. I'll be able to extend it with the Html class and reference the whole object from within the function. Thanks for all the help. On Aug 12, 7:51 am, grigri j...@hendersonwebdesign.com wrote: Hi Josh, With that sort of code, you'd

Re: HTML helper in function?

2009-08-12 Thread Josh
Ahhh... passing a handle as an argument. It seems so obvious now. Thanks I have actually already moved things to a helper, which makes more sense anyway. The helper I have will suit my needs fine this time around. It will be easy to wrap tags around the menu elements when I get around to the

HTML helper in function?

2009-08-11 Thread Josh
Hi, I have the contents of a tree menu stored in a multi-dimensional array. The number of dimensions is not fixed, so to turn the array into a menu in the View file, I have set up a recurring function. This works fine except that I can't call the $html-link() from the function. Fatal error:

Re: HTML helper in function?

2009-08-11 Thread Josh
can't find HtmlHelper...is there a reason you are executing that logic in your view and not the controller? On Aug 11, 7:02 pm, Josh joshs.silver...@gmail.com wrote: Hi, I have the contents of a tree menu stored in a multi-dimensional array. The number of dimensions is not fixed, so

Re: HTML helper in function?

2009-08-11 Thread Josh
element: App:import('Helper', Html'); $html = new html(); does html helper work in other parts of your element outside the function? i usually have no problems at all using $html-link() within an element function. On Aug 11, 10:47 pm, Josh joshs.silver...@gmail.com wrote: The helpers

CakePHP (and other leading php frameworks) vs. Drupal custom modules

2009-08-09 Thread Josh
Does anyone have CakePHP experience and Drupal custom module experience? If so, what is your opinion of the Drupal API for writing custom modules? I have a friend that is about to do a re-design for his Drupal app and is considering changing frameworks. They would have to design 3-4 custom

Re: Silent errors when model's table is not found??

2009-08-08 Thread Josh
I don't know if cake has a way to list all the tables. Assuming it doesn't you might try something like this: //make array with tables $sql = SHOW TABLES; $result = mysql_query($sql); while ($row = mysql_fetch_row($result)) {

Re: ACL not denying access to protected actions

2009-08-07 Thread Josh
described. Cheers On Aug 3, 5:53 am, Josh joshs.silver...@gmail.com wrote: Hello, I have been working on an app for quite a while now, and I have just noticed that myACLdoesn't seem to be doing anything: once logged in, allactionsare allowed.  I have checked through theACLtutorial

Re: Running shells as cron jobs on Godaddy

2009-08-07 Thread Josh
/cgi-bin/ -console $HOME/html/cake/console/ -app $HOME/html/app/ Maybe this will be of some use to others. Josh On Aug 6, 11:39 pm, JamesF usaexportexpe...@gmail.com wrote: check -path in your arguments because it seems from what you typed that the php cli can't find cake.bat On Aug 6, 3:56

Running shells as cron jobs on Godaddy

2009-08-06 Thread Josh
Hi, I have been trying to get a shell script to run as a cron job on Godaddy for quite a while. Here is what I have entered as a command based on the Cookbook (http://book.cakephp.org/view/846/Running-Shells- as-cronjobs): /home/content/.../html/vendors/cakeshell report -cli /web/cgi-bin/php5

ACL not denying access to protected actions

2009-08-02 Thread Josh
Hello, I have been working on an app for quite a while now, and I have just noticed that my ACL doesn't seem to be doing anything: once logged in, all actions are allowed. I have checked through the ACL tutorial in the manual a few times and even removed and replaced the code snippets. I have

'set' and 'render' together? access set variables from different view?

2009-07-26 Thread Josh
This seems like a very simple question, but I have been struggling with it for quite a while. How can I use the 'set' function and then the 'render' function while still being able to access my set variables from the view? It seems to me that 'set' only makes variables available in the view that

Re: 'set' and 'render' together? access set variables from different view?

2009-07-26 Thread Josh
Brian the actual variable is $a, no underscores. Maybe I wasn't clear in my earlier post. e.g. //exampleController - someaction $a = 'a'; $this-set('a', $a); $this-render('differentaction'); //differentaction.ctp ?php echo $a

Re: 'set' and 'render' together? access set variables from different view?

2009-07-26 Thread Josh
I figured out my problem: there was a redirect statement later in the action that was redirecting to 'differentaction' and thus clearing the viewVars. Thanks. On Jul 26, 12:49 pm, Josh joshs.silver...@gmail.com wrote: Brian the actual variable is $a, no underscores. Maybe I wasn't clear

Trouble with Ajax Autocomplete callbacks and events

2009-03-08 Thread Josh Prowse
for your suggestions, -Josh --~--~-~--~~~---~--~~ 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 cake-php

Re: Auth component not working in 1.2.1.8004

2009-03-02 Thread Josh Prowse
Hey Mal! Are you talking about your local /app/config/routes.php file, or is there some other file that contains those Router::connect statements? I'm having the same problem as you guys, and I can't figure out how to get my logins to work. IGH!!! Thanks, -Josh On Feb 4, 5:36 am

Problems installing phpGACL for CakePHP 1.2

2008-09-22 Thread Josh
I'm having a serious problem installing phpGACL on cakephp 1.2: I can't see the Proceed with installation button that I have been told to click. Is there a way to manually submit the form or to proceed or to make the button visible? Thanks, Josh

Re: Pretty URLs Develpoment Installation Problem

2006-11-18 Thread josh southern
I got mod_rewrite turned on, so the links above don't help solve the problem. I'd still like to know if anyone has seen the /cgi-php/phpwrapper thing before, though... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Pretty URLs Develpoment Installation Problem

2006-11-17 Thread josh southern
I'm trying to get a development install up and running on a shared server (No mod_rewrite or access to the httpd.conf file), but am having problems with: define ('BASE_URL', env('SCRIPT_NAME')); This line in the core.php file, which usually allows me to run a development install when there is

Cake and Index.php

2006-09-03 Thread josh zeidner
Hello, I need to use Cake in a Hosting environment where I have no access to the httpd.conf file. Currently, index.php is not set as a DirectoryIndex. Is there a way to configure CakePHP to work without depending on this configuration? Thanks, Josh Zeidner

Re: Trouble with AjaxHelper $options['loaded']

2006-08-25 Thread josh southern
?php echo $ajax-link('New Supplier', '/suppliers/add', array('update'= array('options', 'details'), 'loaded'='adjustLayout();')); ? This is supposed to call a script that re-sizes the layout based on the longest column. It runs, but too early: the new DIV lengths aren't in the browser yet. The

Trouble with AjaxHelper $options['loaded']

2006-08-24 Thread josh southern
I'm having trouble with the 'loaded' callback function and AJAX links. It seems that the callback is executed a little too early. I have a JavaScript function that basically resizes the height of the columns in my layout when the page is loaded, based on the longest column, and then displays the

Re: AJAX Update div not working

2006-08-16 Thread josh southern
I figured out all the problems. Being new to this whole Prototype thing, I had downloaded the latest version of Prototype from the Prototype website (version 1.4), then downloaded Scriptaculous. I just noticed that the Scriptaculous download contains the *actual* latest version of the Prototype

AJAX Update div not working

2006-08-14 Thread josh southern
I can't get the AJAX Helper functions to update a div in either Firefox or IE (Forefox crashes!). For some reason it only works on Safari (Mac). Here's the relevant code: views/layouts/default.thtml ?php echo $this-renderElement('navbar'); ? ... div id=sidenavnbsp;/div

Re: DboSource::showLog and ajax.

2006-06-09 Thread josh robb
cool - thanks! On 6/8/06, nate [EMAIL PROTECTED] wrote: Just kidding, forget about it. I already added the table id thing. It should show up in the nightlies in the next few days. If you want to keep debug mode on, but not show the query dump, just set DEBUG to 1.

Re: File Not Found When Trying To Scaffold

2006-06-09 Thread josh robb
Because WAMP ships with mod_rewrite disabled this is becoming a real FAQ for new users. What about making a small change to the trunk .htaccess to include something like the following: IfModule !mod_rewrite.c SetEnv CAKEPHP_NOMODREWRITE 1 /IfModule and then in core.php doing something

Re: DboSource::showLog and ajax.

2006-06-08 Thread josh robb
nate, Thanks for that - that works great! I've got one more related question for the group. I've had to make a small change to DboSource::showLog() to add a div id=sqllog /div wrapper to the whole thing. (Guess I could have added an id= to the table on reflection). This allows me to hide the

Re: DboSource::showLog and ajax.

2006-06-08 Thread josh robb
Cool - I'll do that - after thinking about it I'd prefer that the query log got included with $cakeDebug - or maybe a seperate variable. j. On 6/8/06, nate [EMAIL PROTECTED] wrote: We're working on making the debug settings slightly more flexible for Cake 2.0. Adding an id to the table is

DboSource::showLog and ajax.

2006-06-06 Thread josh robb
Hi there, I'm making some ajax calls to one of my controllers and the query log is being appended to the result. Is this a know problem or have I broken something somewhere? j. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: DboSource::showLog and ajax.

2006-06-06 Thread josh robb
Sorry - should add that I have: define('DEBUG', 2); Set while I'm developing. j. On 6/6/06, josh robb [EMAIL PROTECTED] wrote: Sorry - should add that I have: define('DEBUG', 2); Set while I'm developing. j. On 6/6/06, josh robb [EMAIL PROTECTED] wrote: Hi there, I'm making

Re: DboSource::showLog and ajax.

2006-06-06 Thread josh robb
Yeah - I was hoping that there would be a clever way of making ajax calls work while DEBUG was 1. I'd code it myself - but I couldn't figure out how to get the controller instance from DboSource. Any ideas? j. On 6/6/06, nate [EMAIL PROTECTED] wrote: You sort of answered your own question.

using findAllThreaded output in views.

2006-06-05 Thread josh robb
I'm having trouble figuring out how to show the nested [children] arrays in a view. Has anyone who's done this care to share what the trick is? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To

Re: unset($this-params['data']) Not Working???

2006-05-22 Thread josh southern
l14mr42075cwb; Mon, 22 May 2006 08:53:37 -0700 (PDT) X-Google-Token: j1BK8AwAAAD_n4v4ENmRTIH6jH2K7NuB Received: from 68.216.187.39 by y43g2000cwc.googlegroups.com with HTTP; Mon, 22 May 2006 15:53:37 + (UTC) From: josh southern [EMAIL PROTECTED] To: Cake PHP cake-php

Re: unset($this-params['data']) Not Working???

2006-05-19 Thread josh southern
It definitely isn't the browser, as I don't have the auto-fill feature turned on. And it's not that I couldn't use the flash() function, I just think it's sort of silly. It would be much quicker for data input to just display a message on top of another blank form. And the method I'm trying to

unset($this-params['data']) Not Working???

2006-05-18 Thread josh southern
In several applications I've developed, on the 'add' functions, instead of using the built-in flash() function, I simply unset $this-params['data'] and display the empty form again with a success message, to allow for more rapid data input: //Save to DB and report on results if

  1   2   >