Re: CakePHP Containable on Associated Model

2012-05-05 Thread Michael Stelly
Yes, I'd work it using Containablehttp://book.cakephp.org/2.0/en/core-libraries/behaviors/containable.html . Sincerely, Michael Stelly On Thu, May 3, 2012 at 9:59 PM, Rob bizarro...@gmail.com wrote: I have a setup where there are Books Users and Logs. Each Log has a Book and a User and I

Re: Model Associations and Inserting through Associations

2012-05-05 Thread Michael Gaiser
it up. ~Michael -- 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 questions. To unsubscribe from this group, send email to cake-php+unsubscr

Re: Instantiating and Saving a Model from another Model

2012-05-05 Thread Michael Stelly
if(!isset($this-ModelName){ $this-ModelName-loadModel(); } This only works in the controller, but it should get you what you want if I understood the question correctly. Sincerely, Michael Stelly mobile: +1.918.978.2000 skype: mjstelly LinkedIn http://www.linkedin.com/in/mstelly On Sat, May

Re: Potential Database Project using Cake PHP

2012-05-04 Thread Michael Gaiser
http://book.cakephp.org/2.0/en/index.html -- 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 questions. To unsubscribe from this group, send email to

Re: how to get id before saving

2012-05-03 Thread Michael Gaiser
I think you could also set it up as a Virtual Field since its calculated off the id and that wont change. It would also keep your table a bit smaller and not run the risk of data duplication. ~Michael -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check

HABTM Save format?

2012-05-03 Thread Michael Gaiser
I am using Cake 2.1 and have a two models, Domain Location which use the DomainsLocation join table. In the DomainController, I have a function called AddLocation() which I want to add a record to the DomainsLocation table so that the domain knowns which locations belong to it. So here is my

Re: Sort assoc data

2012-05-02 Thread Michael Gaiser
' = array(      'OtherModel.column' = 'ASC'     )  ) ) On Tue, May 1, 2012 at 5:55 PM, Michael Gaiser mjgai...@gmail.com wrote: So, I have been able to sort queries of the basic model, but how do you specify sorting paramaters for the associated models? -- Our newest site for the community

Giving context to a select field?

2012-05-02 Thread Michael Gaiser
So, I have a Location Model that is using the tree behavior. Level 1 is Countries, their children are Regions. The Regions children are cities... So I need to give some context to the results in the select menu since there are several cities with the name Portland for example. Is it Portland,

Sort assoc data

2012-05-01 Thread Michael Gaiser
So, I have been able to sort queries of the basic model, but how do you specify sorting paramaters for the associated models? -- 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

Google Map interface question

2012-04-29 Thread Michael Gaiser
So, I want to use Google maps on my project which makes use of a Location model. In that model there is a longitude and latitude value. Most of the tutorials I have looked at talk about how to place markers on your map. What I want to do is use the map to allow people to navigate to the location

Re: Tree Behavior Issue

2012-04-28 Thread Michael Gaiser
Yep... that would cause an issue. Thanks. On Fri, Apr 27, 2012 at 9:12 PM, lowpass zijn.digi...@gmail.com wrote: public $actsAs = array('Tree'); Notice the lowercase s you left out. On Fri, Apr 27, 2012 at 7:39 PM, Michael Gaiser mjgai...@gmail.com wrote: I want to use the Tree Behavior

Re: Can you dynamically change CSS for a layout per user?

2012-04-28 Thread Michael Gaiser
Would it be possible to just put a test in your app_controller.php and then make use of it in your \View\Layouts\default.ctp file? That way all your pages get it by default and you do not need to drive yourself crazy with placing that code everywhere. ~Michael -- Our newest site

Tree Behavior Issue

2012-04-27 Thread Michael Gaiser
I want to use the Tree Behavior on one of my models in 2.1, but it has multiple belongsTo relationships which I think is messing it up. In my domain model I have added: public $actAs = array('Tree'); In my controller I have: public function index() { $data =

Re: Double URL in Links

2012-04-23 Thread Michael Gaiser
I was able to fix the issue by adding this to my core.php file. Configure::write('App.baseUrl', /); :) -- 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

Double URL in Links

2012-04-22 Thread Michael Gaiser
So, I am getting this strange error. My links have the site name listed twice in the url. http://www.mysite.com/mysite.com/users/view/9 Now, http://www.mysite.com brings up my home page as expected, but all the links on the site have the additional layer in the name for some reason. I am

Re: Double URL in Links

2012-04-22 Thread Michael Gaiser
localhost. Any help would be greatly appreciated. Thanks. On Sun, Apr 22, 2012 at 2:05 AM, Michael Gaiser mjgai...@gmail.com wrote: So, I am getting this strange error. My links have the site name listed twice in the url. http://www.mysite.com/mysite.com/users/view/9 Now, http://www.mysite.com

Authentication Scope error message

2012-04-21 Thread Michael Gaiser
So, I want to have a requirement for my users email to be confirmed before they are allowed to login. This will be represented by a confirmed field in my User table. I have set my Authentication scope to be array('User.confirmed' = 1) and it works as expected. My only issue now is that when the

Re: Authentication Scope error message

2012-04-21 Thread Michael Gaiser
Ok. Thanks. -- 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 questions. To unsubscribe from this group, send email to

rediredt from a plugin tree

2012-04-10 Thread Michael
Using Cake 1.3 I installed the 'full calendar plugin'. It has a tree that duplicates the cake tree, which may be the problem. When I am in the calender view and try to log out I get and error. The error is tied to the url path tree, i.e. http://doman.com/full_calendar/users/logout. I would have

How to stop redirecting to login page

2012-04-05 Thread Michael Gaiser
So, I have a login link in the corner of my homepage which I want people to click on to login... pretty simple. Problem is that I cannot seem to view my homepage as I am automatically redirected to the login page. This causes issues when you login since the login returns you to the initial page

Re: How to stop redirecting to login page

2012-04-05 Thread Michael Gaiser
I forgot to post it, but there is a call to parent::beforeFilter() as well as $this-Auth-allow('/', 'login', 'logout', 'confirm'); in the beforeFilter within the User Controller. I still cannot figure out why its automatically getting sent to the login though. -- Our newest site for the

Re: Failed Deployment

2012-03-08 Thread Michael Gaiser
Yeah, clearing the cache didnt work either. When I view the page source, it is completely empty. -- 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

Failed Deployment

2012-03-02 Thread Michael Gaiser
So I have been working on a site for a while now on my laptop (localhost) and things pretty much worked the way I would expect. But when I tried to deploy it to my host and thats where my problems started. When I go to my site, a blank page shows up, even though the redirect to /users/login does

Accessing another controllers function.

2011-08-15 Thread Michael Gaiser
= $this-Domain-Locations-report($id) But that doesn't seem to work. Is there a way to do this or is my thinking backwards on this one? Thanks. ~Michael -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http

Calling controller methods from an external php class.

2011-08-09 Thread Michael IV (aka SasMaster)
in the WebOrb which should call an action in one of cake's controllers.How do I call a thea seasoned PHP devs. Thanks for help. -- Michael Ivanov ,Senior Programmer Neurotech Solutions Ltd. www.neurotechresearch.com http://blog.alladvanced.net Tel:054-4962254 mich...@neurotech.co.il t

multiple views or one massive view

2011-07-23 Thread Michael Gaiser
multiple if statements and set it up like a large switch, or is it possible to have the controller call a different view depending on that variable as would be my preference. Thanks. ~Michael -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new

Non-caching of flash elements continued

2011-07-11 Thread Michael Christoff
I was wondering whether the issue below had ever been solved... http://cakephp.1045679.n5.nabble.com/Non-caching-of-flash-elements-td1279440.html Basically the problem is that in my layout (default.ctp), my flash messages are not being displayed. Specifically: Case 1 1. In

Between conditional question

2011-06-27 Thread Michael Gaiser
want dates between Date X Date Y or only find records that have the desired month, but still of the same year, ie ignore the day data. Thanks in advance. ~Michael -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http

setFlash issue in 1.3?

2011-05-18 Thread Michael Gaiser
was defined in my component and helper arrays within my app_controller. Using setFlash used to display a message in the next page. Is this still the proper way to use it? Any help on this would be greatly appreciated. ~Michael -- Our newest site for the community: CakePHP Video Tutorials http

Re: You favorite IDE/ Dev Setup?

2011-04-01 Thread Michael Carriere
the product is ready to ship, we will manually sync the live server to the revisions, as versions are tagged and released. - Michael On Mar 31, 2011, at 8:13 AM, Akeda Bagus wrote: On Thu, Mar 31, 2011 at 4:38 AM, Shinya Koizumi sh.koiz...@gmail.com wrote: CentOS Subversion Zend Studio( Remote

canceling action execution in the controller.

2011-03-29 Thread Michael Iv
Hi all. I am an noobe here.I want to be able to cancel an action before its execution.The scenario is as follows. I have a navifgation bar. When I press a link I check if the current URL is the same as that of the link.If it is I want to prevent the controller to execute the action which renders

Re: CakePHP 1.3, JSHelper and Autocomplete, Missing method?

2011-03-06 Thread Michael T
So Nic, you got it to work? I didn't have to change the $_callbackArguments field; I just modified the callback arguments within my implementation of autocomplete(). -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site

Re: $html versus $this-Html (is it the same?)

2011-02-13 Thread Michael Carriere
IIRC, $html is from cake 1.2 or earlier. $this-Html is for 1.3 and going forward. If you use $html, you are at risk of having to fix all of your code when newer versions of cake come out that don't support it anymore. On Feb 13, 2011, at 12:47 PM, Rumkuchen wrote: Hi cricket! thanks for

Re: Avoiding redundant find() calls when building model methods

2011-02-09 Thread Michael Carriere
I'd be interested to hear what other people say about this suggestion, but since PHP is a loosely typed language, you could use that to your advantage. To reduce confusion, I would suggest changing the name of the variable from $id at this point, but what about doing something like:

Understanding the M in MVC?

2011-02-03 Thread Michael Carriere
(albeit loaded) questions. Any help is appreciated, thank you! - Michael -- 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 questions. To unsubscribe

Re: Bake/inflector problem

2011-01-20 Thread Michael
by _plural['uninflected'], while 'children' was falling all the way through to the rules. Therefore, by adding the word to the _plural['uninflected'] array in the Inflector, I solve the problem for me. I guess you'd need to add 'menus' to the same array. Hope that helps, Michael On Jan 12, 2:28 pm

Work around for Cake Error clearing $this-params?

2010-12-22 Thread Michael Riddle
So I've found when ever a cake error happens it causes $this-params to clear and I lose all access to information it held (url, named, etc) is there a way around this? My app_controller used some of the data provided in it to theme pages (I would prefer not to have generic site template for any

Re: AJAX Chain Reaction - Multiple Divs.

2010-11-24 Thread Michael T
element. This way, your select elements could be defined statically, and hence appear on the form from the first page load. Does it sound like I'm on the right track? If so, I can provide you with a small example on how to achieve this. Cheers, Michael On Nov 24, 10:42 pm, Stephen step

Re: AJAX Chain Reaction - Multiple Divs.

2010-11-24 Thread Michael T
PS - very nice styling on your forms! Is that proprietary or free to use? On Nov 24, 10:42 pm, Stephen step...@ninjacodermonkey.co.uk wrote: Hi Michael Thanks for the reply. What does your code look like at the moment? Please see:http://pastie.org/private/3ojfcqvo2g395rgab6cnbw I am

Re: CakePHP 1.3, JSHelper and Autocomplete, Missing method?

2010-11-23 Thread Michael T
I ran into this issue a while ago. I decided to add the autocomplete method to the JsHelper / jQuery engine myself. Here's what you need to do. In jquery_engine.php, you need to create an autocomplete method. You can copy/paste from a similar method e.g. the 'sortable' method. You might want to

Re: JS helper

2010-11-23 Thread Michael T
Huoxito - are you referring to server side and client side validation? Generally, it's a good idea to do both anyway. That way you can guarantee that even if someone attempts to trick the server into saving something invalid, it will still be validated. On Nov 22, 7:22 pm, huoxito

Re: AJAX Chain Reaction - Multiple Divs.

2010-11-23 Thread Michael T
the value of a select list changes? Are you pre-loading all conceivable options once at the start and just selecting the appropriate subset of options when you change values? Regards, Michael On Nov 22, 11:09 pm, Stephen step...@ninjacodermonkey.co.uk wrote: Hi There I have a system in place

Re: cakephp + jquery help

2010-11-23 Thread Michael T
Note that if you want to use the JsHelper, you might find that some jQuery widgets/functions might not be available e.g. autocomplete. You will have to extend the JsHelper yourself to do that. Good luck! On Nov 19, 12:42 am, jd poweredbyb...@gmail.com wrote: Hi All Excuse the beginners

Re: Can i send email through mysql/cakephp when the users are offline?

2010-11-04 Thread Michael T
It sounds like he wants a scheduler to be able to execute some arbitrary thing (send an email) at a particular time. As a fellow Cake newbie, I myself have been wondering whether this is possible. With a web application server like Tomcat, you could just have an extra thread which runs the

Deeper User Info

2010-10-28 Thread Michael Gaiser
of the user table and does not join the domain table info into it as if recursive was set to 0. How do I get it to include that joined domain name when the Auth-user function is called? Thanks. ~Michael Check out the new CakePHP Questions site http://cakeqs.org and help others

Re: 2 column css layout: click on link in left column, opening the view in the right column

2010-10-27 Thread Michael T
On Oct 28, 5:17 am, Tomfox Wiranata tomfox.wiran...@gmail.com wrote: how do view and layout work together? thx :) Conceptually, the view should only contain the HTML relevant to a specific action, while the layout should contain HTML that is common across multiple actions. How this is achieved

Re: Block every http connection except mine using .htaccess mod_rewrite?

2010-10-17 Thread Michael T
Hey Josh, Maybe the reason why your original attempt didn't work is because you didn't modify all 3 of the .htaccess files that are required in a Cake app? The files are in: /your_cake_dir/.htaccess /your_cake_dir/app/.htaccess /your_cake_dir/app/webroot/.htaccess Give that a try. Cheers, On

Re: ACL and multiple groups

2010-10-17 Thread Michael T
. Michael PS - read your blog post on dynamic navigation menus today and was wondering if you ever did happen to make it into a plugin? http://articles.classoutfit.com/2009/11/cakephp-dynamic-navigation-bars/ On Oct 5, 8:31 pm, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: I'm going

Re: Custom router question

2010-10-14 Thread Michael Tokar
. In our pizza ordering plugin example, we'd access our PizzaOrdersController at /pizza/ pizzaOrders. That's what triggered me to use plugins - the url format. On Oct 13, 1:49 pm, Michael Tokar michael.to...@gmail.com wrote: Interesting. Do you think you could post some sample code of your

Re: passing data to controller via POST makes trouble

2010-10-13 Thread Michael T
I had similar problems like yours and I found that using Firebug to debug what was being sent back to the server via Javascript was *very* helpful. If you haven't done so already, you should install it. What version of CakePHP are you using? I know that in 1.3 you can use the JsHelper's 'request'

Re: Custom router question

2010-10-13 Thread Michael T
I have to do a similar thing in my Cake app, so I'm very interested to hear how you go about it in the end. For the time being I've taken your first approach of having a report-per-action in the one controller. I was thinking about defining each report in the Model layer however (similar to what

Re: passing data to controller via POST makes trouble

2010-10-13 Thread Michael T
{                                         alert(html);                                 }                                 }                 });         }); On 13 Okt., 11:17, Michael T michael.to...@gmail.com wrote: I had similar problems like yours and I found that using Firebug to debug what was being sent back

Re: Custom router question

2010-10-13 Thread Michael Tokar
On 14 October 2010 07:17, cricket zijn.digi...@gmail.com wrote: But let's back up a bit--do you have Sale Customer models? What I was getting at in my earlier suggestion was that you could declare options in each model for how its reporting would be conducted. For my situation at least,

Re: Custom router question

2010-10-13 Thread Michael Tokar
... controllers/views. The url will look like: http://url.com/reports/sales/ On Oct 13, 1:15 pm, Michael Tokar michael.to...@gmail.com wrote: On 14 October 2010 07:17, cricket zijn.digi...@gmail.com wrote: But let's back up a bit--do you have Sale Customer models? What I was getting at in my

What's your opinion: database views VS complex join conditions?

2010-10-07 Thread Michael T
Hi all, In attempt to solve a particular problem, I've tried a solution which to me, a CakePHP novice, seems a bit un-Cake like. I wanted to ask your opinion here on whether a) this matters; and b) if it does matter, what's the Cake-friendly way to do it? Here's a summary of my models and their

Using Form type of GET makes input elements have blank name attributes?

2010-10-06 Thread Michael T
. Thanks in advance for your help! Michael 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

Re: Issue getting deeper info

2010-09-30 Thread Michael Gaiser
When I try that is says that Location is not associated with Domain, which is correct since the join table is the one associated with both of them. On Sep 29, 2010 10:46 PM, wrdevos wrde...@gmail.com wrote: Hi Michael, take a look at the Containable behavior: http://book.cakephp.org/view/1323

Re: Issue getting deeper info

2010-09-29 Thread Michael Gaiser
I will also add that changing the recursive setting does not seem to work. ~Michael 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

Re: Issue getting deeper info

2010-09-29 Thread Michael Gaiser
Might this have anything to do with it using the tree behavior? On Sep 29, 2010 7:14 AM, Michael Gaiser mjgai...@gmail.com wrote: I will also add that changing the recursive setting does not seem to work. ~Michael Check out the new CakePHP Questions site http://cakeqs.org and help others

Issue getting deeper info

2010-09-28 Thread Michael Gaiser
( ) ) ) As you can see, I am getting the location_id but I am not getting the name of that location and I do not want to have to do a separate search for each location. Any idea what I am doing wrong? Thanks. ~Michael Check out the new CakePHP Questions

shared controller functions

2010-09-27 Thread Michael Gaiser
So I want to use some of the functions from my locations controller in my domains controller. I know how to load a model, which is working, but when I tried to load a controller, it didnt seem to work is there some special syntax for this? ~Michael Check out the new CakePHP Questions site http

Need some help with a rather complex find() request

2010-09-17 Thread Michael Gaiser
really like it if the database would do all the heavy lifting. Thanks. ~Michael 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

Re: Trouble with find conditions

2010-09-02 Thread Michael Gaiser
That worked. Thanks On Sep 1, 2010 6:06 PM, cricket zijn.digi...@gmail.com wrote: On Wed, Sep 1, 2010 at 5:51 PM, Michael Gaiser mjgai...@gmail.com wrote: The structure is currently a int(11) which can also be NULL. The command I am using is this. $results = $this-paginate('Location', array

Paginate page 2+ not working

2010-09-02 Thread Michael Gaiser
in that function. Thanks. ~Michael function index($searchStr = null) { $results = array(); //Use the searchStr if there is no data. if(empty($this-data) $searchStr != null) { $this-data['autoComplete'] = $searchStr; $this-data['Location']['constrainType

Ajax link to update display

2010-09-02 Thread Michael Gaiser
the DB again. Is there anyway to change the text of the link after clicking on it so I know that it actually did something without having to have firebug open and without having to reload the page again? ~Michael Check out the new CakePHP Questions site http://cakeqs.org and help others

Re: Paginate page 2+ not working

2010-09-02 Thread Michael Gaiser
around. ~Michael On Thu, Sep 2, 2010 at 10:30 AM, cricket zijn.digi...@gmail.com wrote: When you say that the query is empty, do you mean $results? Or are you referring to the DB query itself (as printed at the bottom of the page, for example)? Have you tried debugging $searchOptions immediately

Re: Paginate page 2+ not working

2010-09-02 Thread Michael Gaiser
. ~Michael On Thu, Sep 2, 2010 at 5:37 PM, Michael Gaiser mjgai...@gmail.com wrote: I was meaning $results didnt have any info in it. When I debug($results), it is just an empty array. I think this has something to do with the fact that the paginate link doesnt supply the views form again, so

Trouble with find conditions

2010-09-01 Thread Michael Gaiser
I am trying to limit my search to all the records that do not have a confirmed_id assigned to them. How do you set that condition up? I have tried ' ', None, NONE, NULL, null and many others and nothing seems to work. Any suggestions? ~Michael Check out the new CakePHP Questions site http

Re: Trouble with find conditions

2010-09-01 Thread Michael Gaiser
to get it to return all the records that have a null in the confirmed_id. ~Michael On Wed, Sep 1, 2010 at 8:46 AM, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: What is the data type of the field? What is your full find statement at the moment? Jeremy Burns *Class Outfit

Online Documentation

2010-08-24 Thread Michael Gaiser
Hey guys, I know that Cake has a great online set of documentation, but the only time I really have to work on my project is on the train which unfortunately does not have internet access. Is there a copy of the online docs anywhere or do you know of a program that can crawl the cakephp.orgsite

Re: Getting Digest Authentication to Work

2010-07-30 Thread Michael
No it is not and I don't have access to have that changed. Nor is it something that I can request to be changed. Is that a showstopper? thanks, Michael On Jul 30, 7:08 am, cricket zijn.digi...@gmail.com wrote: Does Apache have mod_digest loaded? On Thu, Jul 29, 2010 at 2:58 PM, Michael

Re: Getting Digest Authentication to Work

2010-07-30 Thread Michael
Nor is mod_php. I did a bit of digging in the security.php source and it looks that those two nos are my show stoppers. thanks, Michael On Jul 30, 10:00 am, Michael desert.bo...@gmail.com wrote: No it is not and I don't have access to have that changed.  Nor is it something that I can request

Getting Digest Authentication to Work

2010-07-29 Thread Michael
is 5.2.9. thanks in advance, Michael 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

Auth component not returning expected array key??

2010-03-19 Thread Michael Gaiser
So I am currently trying to migrate to Cake 1.3RC2. Everything is going well, except the array that is being returned when I call $this-Auth-user(). If I am navigating to my user page, the array key is: Array ( [User] = Array ( etc..)) But when I am navigating to any of my other pages it comes

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

2010-02-24 Thread Michael Gaiser
+San Francisco 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

Containable with recursion?

2009-12-22 Thread Michael Gaiser
the children id's. For my find call, I am having to nest the same call over and over inside the containable array because we can have up to 4 levels of children. (World, National, Regional, City, Landmark). Is there a better way to do this? ~Michael Check out the new CakePHP Questions site http

Paginate losing $this-data

2009-11-10 Thread Michael Gaiser
So I want to display all the results from my table that are like the search string. Since there is a lot, I am using the paginate functions so we only display 20 at a time. This works fine, but once I click the link to the next 20 results, it loses the search string because it was originally

Re: Server has broken links

2009-10-14 Thread Michael Gaiser
Cakes error log is empty and debug is set to 2. Any ideas why there isnt anything being written to the debug log? Thanks for the help ~Michael On Fri, Oct 9, 2009 at 8:51 AM, brian bally.z...@gmail.com wrote: Set debug to 2. When set to 0, Cake displays a 404 message. It's probable that you

Re: Server has broken links

2009-10-14 Thread Michael Gaiser
When I uncomment Configure::write('App.baseUrl', env('SCRIPT_NAME')); in my core.php it seems to work but feels like a cheat. Any reason mod_rewrite isnt working with the default setup? when I did a php info, it shows rewrite_mod loaded. ~Michael

Re: Server has broken links

2009-10-14 Thread Michael Gaiser
Nope. Already went though that page and everything was set right. On Tue, Oct 13, 2009 at 11:30 PM, AD7six andydawso...@gmail.com wrote: On 14 oct, 08:09, Michael Gaiser mjgai...@gmail.com wrote: When I uncomment Configure::write('App.baseUrl', env('SCRIPT_NAME')); in my core.php

Server has broken links

2009-10-09 Thread Michael Gaiser
I have been making a site and testing it on my localhost, but when I have uploaded it to my real host, it breaks. It is able to load the homepage, but the images and css files are unable to be found. The error log shows that it is looking in www.site.com/css instead of www.site.com/app/webroot/css

Re: Including non-plugin element from within plugin

2009-09-25 Thread Michael Clark
Solved with: ?php echo $form-create('User', array('url'=array ('plugin' = null, 'action' = 'login')));? On Sep 24, 5:39 pm, michaelc micha...@hwsinet.com wrote: I'm experiencing an interesting problem wherein I include from within a view in a plugin an element which contains a form (the users

Select forms returning an array?

2009-09-07 Thread Michael Gaiser
the first idea to work as it is less of a hack. Any suggestions? Thanks ~Michael --~--~-~--~~~---~--~~ 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

Re: Can select forms not return an array?

2009-09-03 Thread Michael Gaiser
Cool. Thanks. On Thu, Sep 3, 2009 at 4:17 AM, Miles Jmileswjohn...@gmail.com wrote: A few things your doing wrong and should change immediately. Do not call error(), text() (or the other variants, select(), radio ()). The following code:        ?php echo $form-label('Devotion.name',

Re: Debugging SQL's

2009-09-03 Thread Michael Gaiser
Thanks. On Wed, Sep 2, 2009 at 10:53 PM, schrec...@gmail.com wrote: Configure::write('debug',2); Schreck From: Michael Gaiser Date: Wed, 2 Sep 2009 22:08:42 +0200 To: cake-php@googlegroups.com Subject: Debugging SQL's How do I view the sql generated

Debugging SQL's

2009-09-02 Thread Michael Gaiser
How do I view the sql generated by my controller's add() function? I need to see why some code isn't working and was wondering if there is an easy to view the generated sql. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Can select forms not return an array?

2009-09-02 Thread Michael Gaiser
This is what is being generated: Array ( [Devotion] = Array ( [name] = testcase [description] = A cool Test case ) [Disciplines] = Array ( [0] = Array ( [discipline_id] = Array

Re: Can select forms not return an array?

2009-09-02 Thread Michael Gaiser
$form-input('Disciplines.0.discipline_id', array('label'='Discipline 1', 'type'='select', 'selected'=$html-value('Disciplines.0.discipline_id'), 'options'=$disciplines, 'multiple'='false', 'empty'='Choose One')) There are multiple selection boxes in the view so thats why I needed to add an

Can select forms not return an array?

2009-09-02 Thread Michael Gaiser
just need to loop though the post data and fix it? Thanks ~Michael --~--~-~--~~~---~--~~ 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

HABTM Hell.

2009-08-05 Thread Michael Gaiser
that link to have their own record but only once. ie, the whole record needs to be unique, not just the character_id and the job_id. user_id needs to be condidered too. I have been banging my head against the wall for a while now. Any help would be greatly apprecated. ~Michael

Re: Check boxes for a noob

2009-08-03 Thread Michael Gaiser
groupId doesnt seem to work either. This is what the group array looks like. [Group] = Array ( [0] = Array ( [id] = 2 [name] = Standard User [created] = 2009-07-30 21:55:03

Check boxes for a noob

2009-08-02 Thread Michael Gaiser
): Undefined index: id [*APP\views\users\admin_edit.ctp*, line *12*] I would be grateful for any help. ~Michael The Controller: function admin_edit($id = null) { $groups = $this-User-Group-find(list); $this-set('groups', $groups); if (empty($this-data

Ajax link update?

2009-07-31 Thread Michael Gaiser
']['username'].' '));?/td How do I get the link text to update when I click on the link? I am a bit new to using ajax/javascript so any help would be wonderful. ~Michael --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: How to inheirt form other controllers?

2009-07-29 Thread Michael Gaiser
', 'ParentController'); } class ChildController extends ParentController { // Imeplement controller as normal } Cheers, Graham Weldon e. gra...@grahamweldon.com p. +61 407 017 293 w.http://grahamweldon.com On 27/07/2009, at 8:22 PM, Michael Gaiser wrote: I want to have

ACO help for admin routing

2009-07-28 Thread Michael Gaiser
Ok, after taking several peoples advice to look into admin routing, I have decided I want to go with that strategy. But my ACO's have only ever had the controller name, not the actions. So if my User has access to my LocationsController, then he would also have access to any admin_* functions as

How to inheirt form other controllers?

2009-07-27 Thread Michael Gaiser
I want to have my UserAdmin controller inherit from my User controller instead of AppController. but it cannot seem to find it. Is there a special way to do this in cake or can I just use and include statment? Thanks. ~MJG --~--~-~--~~~---~--~~ You received this

Re: How to inheirt form other controllers?

2009-07-27 Thread Michael Gaiser
...@grahamweldon.com p. +61 407 017 293 w. http://grahamweldon.com On 27/07/2009, at 8:22 PM, Michael Gaiser wrote: I want to have my UserAdmin controller inherit from my User controller instead of AppController. but it cannot seem to find it. Is there a special way to do this in cake or can I

Re: How to inheirt form other controllers?

2009-07-27 Thread Michael Gaiser
of shared code between them, I wanted to have the admin inherit from the normal, then add in the additional functionality. So that's where I am right now. I hope that sheds some light on what I am trying to accomplish. ~Michael On Mon, Jul 27, 2009 at 4:46 PM, brian bally.z...@gmail.com wrote

password data is being lost

2009-06-08 Thread Michael Gaiser
I am trying to authenticate the login, and the username makes it to the user controller, but for some reason, the passord is empty. In the before filter of the app controller, everything is there, but when I look at the data in the login function, the password is blank. Any ideas? Here is the

Re: Validate issue.

2009-06-05 Thread Michael Gaiser
anyone else? This seems to be going wrong on some basic level. What could cause the $validate function not to run? On Thu, Jun 4, 2009 at 6:19 PM, Michael Gaiser mjgai...@gmail.com wrote: This is the feedback from the debug: Array ( [User] = Array ( [username

<    1   2   3   >