Re: Help me design the database structure

2016-04-01 Thread mike karthauser
information about google docs can be found in their support section. http://lmgtfy.com/?q=google+docs+version+control On Fri, Apr 1, 2016 at 1:55 PM, Clement Crownrise < clementcrownr...@gmail.com> wrote: > @Mike, does google has this type of feature? please do enlighten me the > mor

Re: Help me design the database structure

2016-04-01 Thread mike karthauser
probably best to look at something like google docs which already has this functionality before you start building something from scratch to handle this. -- Sign up for our Newsletter for updates. http://cakephp.org/newsletter/signup We will soon be closing this Google Group. But don't worry,

Re: Uploading Cakephp site to live server and getting error 500 internal server error

2015-07-16 Thread Mike Knight
Please check your web server(nginx/apache) logs . without further information ,I can't say what's wrong. 2015-07-16 14:03 GMT+08:00 Amitava Pramanik amitava.xecution.technolog...@gmail.com: I have created a cakephp site and uploaded to my staging server. The Url is

Re: All form fields are not saving in my cakephp database

2015-05-20 Thread Mike Karthauser
it looks like your primary key isn’t defined correctly. cakephp will expect a primary key of ‘id’. if yours is called something different you’ll need to declare it in the model. http://book.cakephp.org/2.0/en/models/model-attributes.html regards Mike On 19 May 2015, at 14:00, Clement

Re: Localhost funciona...Em conta no Hostgator não

2015-05-05 Thread Mike Karthauser
mailto:cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout https://groups.google.com/d/optout. Mike Karthäuser Director

Re: Safari 8.x.x - MissingControllerException

2015-01-16 Thread Mike Karthauser
, visit https://groups.google.com/d/optout https://groups.google.com/d/optout. Mike Karthäuser Director, Brightstorm Ltd. 1, Brewery Court North Street Bristol BS3 1JS mi...@brightstorm.co.uk mailto:mi...@brightstorm.co.uk www.brightstorm.co.uk http

Re: different css styles for checkboxes

2014-12-18 Thread Mike Karthauser
. Mike Karthäuser Director, Brightstorm Ltd. 1, Brewery Court North Street Bristol BS3 1JS mi...@brightstorm.co.uk mailto:mi...@brightstorm.co.uk www.brightstorm.co.uk http://www.brightstorm.co.uk/ +44(0) 7939252144 -- Like Us on FaceBook https

Re: display pure html page without layout

2014-11-24 Thread mike karthauser
You are in the croogo filesystem so you'll need to put in within the views/templates/ webroot (not sure off the top of my head where that is) Mike Karthauser Brightstorm limited Tel: 07939252144 On 24 Nov 2014, at 15:27, Frank Hassani p...@onefh.com wrote: Hi Steven, trying it that way

Re: custumize $this-Html-link()

2014-11-10 Thread Mike Karthauser
options, visit https://groups.google.com/d/optout https://groups.google.com/d/optout. Mike Karthäuser Director, Brightstorm Ltd. 1, Brewery Court North Street Bristol BS3 1JS mi...@brightstorm.co.uk mailto:mi...@brightstorm.co.uk www.brightstorm.co.uk http

Re: CakePHP 2.5 random hanging

2014-10-30 Thread Mike Karthauser
http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout https://groups.google.com/d/optout. Mike Karthäuser Director, Brightstorm Ltd. 1, Brewery Court North Street Bristol BS3 1JS mi...@brightstorm.co.uk

Re: How encrypt IDs

2014-09-22 Thread Mike Karthauser
you save a new record using the Model::save method. http://book.cakephp.org/2.0/en/getting-started/cakephp-conventions.html Regards Mike On 22 Sep 2014, at 15:48, romel javier gomez herrera bmxquiksilver7...@gmail.com wrote: I use this type URL to edit records: /edit/1 where 1

belongsTo proper usage to avoid 1052 ambiguity?

2014-09-18 Thread mike
I am in the midst of migrating a large codebase from cake1.2 to the latest cake1.3 - all has been proceeding nicely until I hit an issue with one of the models and how find('all) is generating the SQL request. The find('all') request is in the comments class controller and requests 3 comment

Re: Array to string conversion error when writing to db

2014-09-17 Thread Mike Karthauser
-models-together.html HTH. Mike On 17 Sep 2014, at 11:01, MarkB markbarto...@gmail.com wrote: Hi, I'm new to CakePHP, OOP and my PHP knowledge skills could probably be considered beginner++ level, so please have patience with me. I'm producing an event registration system for a festival

Re: Cake View files

2014-09-16 Thread Mike Karthauser
. Mike Karthäuser Director, Brightstorm Ltd. 1, Brewery Court North Street Bristol BS3 1JS mi...@brightstorm.co.uk www.brightstorm.co.uk +44(0) 7939252144 -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us

Re: Model chaining for a find statement not returning expected results

2014-09-11 Thread Mike Karthauser
. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout. Mike Karthäuser Director, Brightstorm Ltd. 1, Brewery Court North Street Bristol BS3 1JS mi...@brightstorm.co.uk www.brightstorm.co.uk +44(0

Re: Naming Conventions... Apply. Applys. Applies? Gobsmacked!

2014-09-09 Thread Mike Karthauser
to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout. Mike Karthäuser Director, Brightstorm Ltd. 1, Brewery Court North Street Bristol BS3 1JS

Re: Error menu.ctp

2014-09-04 Thread Mike Karthauser
://groups.google.com/d/optout. Mike Karthäuser Director, Brightstorm Ltd. 1, Brewery Court North Street Bristol BS3 1JS mi...@brightstorm.co.uk www.brightstorm.co.uk +44(0) 7939252144 -- Like Us on FaceBook https

Re: Error menu.ctp

2014-09-03 Thread Mike Karthauser
. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout. Mike Karthäuser Director, Brightstorm Ltd. 1, Brewery Court North Street

How to use ajax to update values using drop down button in cakephp 1.2

2014-07-24 Thread mike brandon
Hi all, I am quite new to cakephp. So ...things which are easy for you are quite difficult for me now. Plz help me to get it soon. my problem is i am not able get the edit field id and cant edit it as click on edit button which i made.evrry time i have to get my search done.then,my search

Re: Notice (8): Undefined variable: user [APP/View/Users/index.ctp, line 12]

2014-04-23 Thread Mike Karthauser
. Mike Karthäuser Director, Brightstorm Ltd. 1, Brewery Court North Street Bristol BS3 1JS mi...@brightstorm.co.uk www.brightstorm.co.uk +44(0) 7939252144 -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http

Re: Cake Console validation explained? Is there a document somewhere?

2014-03-06 Thread Mike Karthauser
. Mike Karthäuser Director, Brightstorm Ltd. 1, Brewery Court North Street Bristol BS3 1JS mi...@brightstorm.co.uk www.brightstorm.co.uk +44(0) 7939252144 -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter

Problems with sqlite3 on debian sid

2014-03-02 Thread Mike Dupont
: https://github.com/h4ck3rm1k3/cakephp/blob/sqlitedebug/lib/Cake/Model/Datasource/Database/Sqlite.php#L398 php5-sqlite version is 5.5.9+dfsg-1. any ideas? Anyone else with that problem? thanks, mike -- James Michael DuPont Member of Free Libre Open Source Software Kosova http://www.flossk.org

Re: Cakephp without Save() function?

2013-12-17 Thread Mike Karthauser
, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out. Mike Karthäuser Director, Brightstorm Ltd. 1, Brewery Court North Street Bristol BS3 1JS mi

Re: CakePHP FileEngine and MemcacheEngine

2013-12-05 Thread Mike Karthauser
. Mike Karthäuser Director, Brightstorm Ltd. 1, Brewery Court North Street Bristol BS3 1JS mi...@brightstorm.co.uk www.brightstorm.co.uk +44(0) 7939252144 -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http

Re: Can the same web app mix cakephp with non-cakephp code?

2013-10-11 Thread Mike Karthauser
/opt_out. Mike Karthäuser Director, Brightstorm Ltd. 1, Brewery Court North Street Bristol BS3 1JS mi...@brightstorm.co.uk www.brightstorm.co.uk +44(0) 7939252144 -- Like Us on FaceBook https://www.facebook.com/CakePHP Find

Re: converting array to string

2013-09-25 Thread Mike Karthauser
($conditions))); Mike Karthäuser Director, Brightstorm Ltd. 1, Brewery Court North Street Bristol BS3 1JS mi...@brightstorm.co.uk www.brightstorm.co.uk +44(0) 7939252144 -- Like Us on FaceBook https://www.facebook.com/CakePHP

Re: CakePhp doesn't read the script

2013-09-17 Thread Mike Karthauser
an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out. Mike Karthäuser

Re: ajax validation with rules from model

2013-09-12 Thread Mike Karthauser
. For more options, visit https://groups.google.com/groups/opt_out. Mike Karthäuser Director, Brightstorm Ltd. 1, Brewery Court North Street Bristol BS3 1JS mi...@brightstorm.co.uk www.brightstorm.co.uk +44(0) 7939252144 -- Like

Re: class AppHelper not found

2013-06-11 Thread mike karthauser
Hi On 11 Jun 2013, at 17:57, Safa Ksouri safa.kso...@gmail.com wrote: salut, je suis debutante en cakephp , je suis entrin de suivre la creation du Blog et j'ai rencontré cet erreur 1 Fatal error: Class 'AppHelper' not found in

Re: CSS in CakeEmail

2013-05-14 Thread Mike Karthauser
pages. you'll have to add inline styles to elements to get them to change accordingly. http://css-tricks.com/sending-nice-html-email-with-php/ HTH Mike Karthäuser Director, Brightstorm Ltd. 1, Brewery Court North Street Bristol BS3 1JS mi...@brightstorm.co.uk

Re: Cakephp .htaccess/Mod_Rewrite with hosted site

2013-02-06 Thread mike karthauser
On 6 Feb 2013, at 20:51, Karl Smith barnun...@hotmail.com wrote: Currently you can access my website with something like this www..com//source/now my question is how would I alter my .htaccess file so I can access my site like this www..com/? I have looked around on the

Re: A list of open source webapps to study ?

2012-12-06 Thread Mike Karthauser
to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en. Mike Karthäuser Director, Brightstorm Ltd. 1, Brewery

Solution for CakePHP newbies who are stuck with messages like - Error: PostController could not be found

2012-11-24 Thread Mike Pritchard
! I've been able to finish the tutorial and even extend it a little. Onward and upward. MIke -- 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. To post

Help with setting up db/classes for a noob

2012-10-30 Thread Mike Rogers
I am working on a pro sports stats website and I'm looking for advice on how to setup my tables as well as naming my classes (models/controllers). Let's say for example that I'm working with data from the NBA, NFL and MLB. Would it make sense to setup the tables with prefixes such as

Is it possible to share template files for multiple apps on the same domain?

2012-10-30 Thread Mike Rogers
of making multiple apps I should have tried to keep them both under the same app. But I'm sure other people may be interested in this as well. Thanks! -Mike -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message

Re: fMath editor: Error saving image on server:

2012-10-15 Thread Mike Karthauser
with folder permissions. Mike Karthäuser Director, Brightstorm Ltd. 1, Brewery Court North Street Bristol BS3 1JS mi...@brightstorm.co.uk www.brightstorm.co.uk +44(0) 7939252144 -- Like Us on FaceBook https

Re: html attributes on 'year' form helper

2012-10-04 Thread Mike Griffin
and they normally join in with other elements. It looks like you will have to manually add the div and label around the year helper. Mike. On Thu, Oct 4, 2012 at 12:06 AM, Paul Willis paul.wil...@me.com wrote: Despite having read over the relevant sections of the book I can't seem to get the div stuff

Re: Cake can't load anything in webroot dir

2012-10-04 Thread Mike Griffin
Check if you need to use RewriteBase as well. You'll need it if the cakephp app isn't in the base directory as seen by the webserver (if the URL is something like http://example.com/not_the_base/ instead of http://example.com) Mike. On Thu, Oct 4, 2012 at 3:54 AM, Yasir Arafat Hasib arafa

Let's vote for CakePHP?

2012-10-03 Thread Mike Silakov
Hi all) Who works in PhpStorm, let's vote for CakePHP MVC support in IDE - http://youtrack.jetbrains.com/issue/WI-12681 Let's do as much as possible voice)) -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message

Re: Find method with multiple tables

2012-09-16 Thread Mike Griffin
Code, code, code, code, code. Show what you have tried. And saying something is urgent (has everything you posted been urgent?) won't help in most cases. -- Mike Griffin Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Sunday 16 September 2012 at 05:09, Mr. Manager wrote: Dear

Re: How to link to a non cake php page, and where to put it?

2012-09-10 Thread Mike Griffin
folder, you will have to mess with the .htaccess file so that cake doesn't try to intercept it. If it's outside the cakePHP folder, either use the absolute path or a relative path to get to it. Can you view the file on its own? Mike. -- You received this message because you are subscribed

Re: Cakephp Print pdf

2012-09-04 Thread Mike Griffin
invoice. I hope that everyone can help me. Post. Your. Code. How many times do you have to be asked to post your code? If you want some help, you will have to give something to be helped with. Either that or employ someone who knows how to program to write it all for you. Mike. -- You

Re: Cakephp Print pdf

2012-08-31 Thread Mike Griffin
What have you tried? Show some code so that it seems like you are trying things out instead of making very urgent appeals for help. Mike. On Fri, Aug 31, 2012 at 12:49 AM, Mr. Manager lyda...@gmail.com wrote: Dear All, I have problem with creating autocomplete field my my customer id, which i

Re: Wordplay Messing thing up

2012-08-31 Thread Mike Griffin
this helps. Mike. -- 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+unsubscr...@googlegroups.com. Visit this group at http

Re: [Render problem] 5s to render any view

2012-08-31 Thread Mike Griffin
On Fri, Aug 31, 2012 at 3:44 PM, Alexandre Vasconcelos ops@gmail.com wrote: - I commented ?php echo $this-fetch('content'); ? in my default layout - the problem stopped What is the content that you are fetching? Where are you setting that variable? Mike. -- You received this message

Re: [Render problem] 5s to render any view

2012-08-31 Thread Mike Griffin
On Fri, Aug 31, 2012 at 4:37 PM, Mike Griffin griff...@gmail.com wrote: On Fri, Aug 31, 2012 at 3:44 PM, Alexandre Vasconcelos ops@gmail.com wrote: - I commented ?php echo $this-fetch('content'); ? in my default layout - the problem stopped What is the content that you are fetching

Re: got error Error: Call to a member function create() on a non-object on view

2012-08-16 Thread Mike Griffin
-libraries/helpers/form.html for more details. Mike. -- 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+unsubscr...@googlegroups.com

Re: Documentation on modifying default REST routes

2012-08-10 Thread Mike Griffin
://book.cakephp.org/2.0/en/development/rest.html#custom-rest-routing Mike. -- 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+unsubscr

Re: Documentation on modifying default REST routes

2012-08-10 Thread Mike Griffin
know if this can be done in CakePHP? What have you tried? You can get more documentation in the API http://api.cakephp.org/class/router#method-Routerconnect Mike. -- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email

Re: Need Help

2012-08-10 Thread Mike Griffin
here echo td[CODE FOR CHECKBOX]/td; } // finish the row in the table echo /tr; } echo /table; Mike. -- 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

Re: Need Help

2012-08-10 Thread Mike Griffin
On Fri, Aug 10, 2012 at 10:24 AM, mohit kumar mohitk...@gmail.com wrote: thanks Mike.. Let me try that . But the problem is my controller that i generated by the bake is like user - shift - save so with 1 form 1 can save only one user, will it be possible for me to save multiple mappings

Re: Documentation on modifying default REST routes

2012-08-09 Thread Mike Griffin
in the API documentation. The id bit probably means that an id is being sent to the method. A view method needs an id to return the single thing that is being viewed whereas the index doesn't need one as it returns a list of all things. The same for each of the other methods. Hope this helps. Mike

Re: Cake PHP User Management Plugin Eagle

2012-07-26 Thread Mike Griffin
attempt, do refresh your cache and Re-Try to Login. You will be successful in logging and checking and testing. That doesn't sound like an amazing experience to me. Especially not one to pay for. Mike. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check

Re: Archive old data from model's table

2012-07-26 Thread Mike Griffin
' strtotime('one month ago'))) Then in the archive query $this-Report-find('all', 'conditions' = array('created' strtotime('one month ago'))) If you are returning 50,000 reports, you should think about pagination or limiting the returned array in some way. Mike. -- Our newest site for the community

Re: router help

2012-07-21 Thread Mike Griffin
it exactly whereas regex rules catch more things. To recap, put the specific rules at the top and less specific rules further down to make it work properly. Mike. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http

Re: CakePDF Change page orientation

2012-07-20 Thread Mike Griffin
it in the app/Config/bootstrap.php After you have loaded the plugin, use something like this: Configure::write('Pdf', array( 'orientation' = 'landscape' ) ); I haven't tested this so it may not work, but it should put you on the right track. Mike. -- Our newest site for the community: CakePHP Video

Re: Ingherited models that filter active users/records?

2012-07-20 Thread Mike Griffin
in there. Mike. -- 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: Problem with adding records

2012-07-19 Thread Mike Griffin
Is there anything relevant in app/tmp/logs/error.log? Mike. On Sun, Jul 15, 2012 at 7:51 AM, mohit kumar mohitk...@gmail.com wrote: Now the problems are still same, I upgraded to the new version of cake php. I have deleted and created the database again. still i am getting same error. When

Re: Problem with adding records

2012-07-13 Thread Mike Griffin
set anywhere. What happens if you run: SELECT id,username FROM users WHERE id=0; Mike. -- 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

Re: Naming Conventions

2012-07-13 Thread Mike Griffin
the name of the Favourite_Posts table to remove the underscore? What happens if you create the Favourite_Posts model by hand? Mike. -- 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

Re: Naming Conventions

2012-07-13 Thread Mike Griffin
for a Favourite table in the Advantage+'s first mail Mike. -- 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

Re: Naming Conventions

2012-07-13 Thread Mike Griffin
when you use underscores? if the OP would drop their DB schema we might be able to get to the bottom of it - but on the face of it is seems really strange to me Yup, and run the SELECT statement I asked for before too. Mike. -- Our newest site for the community: CakePHP Video Tutorials http

Re: Naming Conventions

2012-07-13 Thread Mike Griffin
inflection rule which is seeing favorite as plural, or I have no idea Kersacly. Mike. -- 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

Re: Cakephp with Extjs

2012-07-13 Thread Mike Griffin
On Fri, Jul 13, 2012 at 2:08 PM, Mr. Manager lyda...@gmail.com wrote: Hi all, anyone know how to get and use extjs, especially integrate with cakephp. Ooh, ooh, I do! -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions

Re: Problem with adding records

2012-07-13 Thread Mike Griffin
What is in the $this-request-data array? Mike On Fri, Jul 13, 2012 at 2:32 PM, mohit kumar mohitk...@gmail.com wrote: Thanks for your response, I have already deleted the user table once.. The code is mostly used from the bake tool. Here is the snapshot of my UsersController. https

Re: Problem with adding records

2012-07-13 Thread Mike Griffin
) 0 = '5', (int) 1 = '1' ) ) On Fri, Jul 13, 2012 at 7:12 PM, Mike Griffin griff...@gmail.com wrote: What is in the $this-request-data array? Mike On Fri, Jul 13, 2012 at 2:32 PM, mohit kumar mohitk...@gmail.com wrote: Thanks for your response, I have already

Re: Page hit Statistic

2012-07-06 Thread Mike Karthauser
is better. far better to keep this outside of your app. use google analytics or some form of server log parser such as awstats or webalizer. /2p Mike Mike Karthäuser Director, Brightstorm Ltd. 1, Brewery Court North Street Bristol BS3 1JS mi

Re: How can I add months to a date?

2012-07-05 Thread Mike Griffin
[cost] = 0 [begin_date] = 1362376800 ) ) ) Mike. -- 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

Re: How can I add months to a date?

2012-07-04 Thread Mike Griffin
in to the future. You might be able to work something out from these. Mike. -- 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

Re: saveAssociated with hasOne creates new entries instead of updating

2012-06-28 Thread Mike Griffin
); Mike. -- 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...@googlegroups.com

Re: cant retrive data from database into a table

2012-06-26 Thread Mike Griffin
or a view because there seems to be a mix of everything in there. Take the output part at the end (the table) and put it in a view. Maybe even the whole foreach section. What are you seeing when you try to run this? What are your errors? Mike. -- Our newest site for the community: CakePHP Video

Re: Default layout and static pages How to?

2012-06-07 Thread Mike Griffin
into the app/View/Pages and then define routes for each of them Router::connect('/aboutus', array('controller' = 'pages', 'action' = 'display', 'aboutus')); Router::connect('/contact', array('controller' = 'pages', 'action' = 'display', 'contact')); Mike. -- Our newest site for the community

Re: Missing Controller Error

2012-06-01 Thread Mike Griffin
the routes file at all. Mike. -- 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: Naming conventions: how should I do this?

2012-05-28 Thread Mike Griffin
. AdminsController, Admin, [add_user, list_users, add_item]? It just doesn't seem right. A users model and controller with actions for add and index. An items model and controller with actions for add. Is this what you mean? Mike. -- Our newest site for the community: CakePHP Video Tutorials

Re: Model Associations

2012-05-25 Thread Mike Griffin
On Thu, May 24, 2012 at 7:37 PM, hill180 hill...@gmail.com wrote: Solved:  But I don't know why.  This but this code puts the data where I want it, and without the index error: Good to hear, glad I could help. Mike -- Our newest site for the community: CakePHP Video Tutorials http

Re: compare and update database records at once.

2012-05-25 Thread Mike Griffin
'] = $in_db['model']['id']; } else { // The entry is not in the database, create it $this-model-create($tp); } // do the save stuff here, if there is an id, it gets edited, otherwise it gets saved } I think that could be a starting point for you. Mike. -- Our newest site for the community

Re: Cake Bake under Ubuntu

2012-05-25 Thread Mike Griffin
/ cake/libs/model/datasources/dbo/dbo_mysql.php on line 613 max@max-ubuntu:~/akk/app$ What is the problem here? Have you got the php mysql packages installed? And mysql-server and mysql-client? Mike. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check

Re: Cake Bake under Ubuntu

2012-05-25 Thread Mike Griffin
On Fri, May 25, 2012 at 3:06 PM, Max Kiehnscherf max.kiehnsch...@googlemail.com wrote: I've got xampp installed. Is that enough? Do you see mysql in the output from phpinfo() ? Did you install mysql-server and mysql-client? Mike. -- Our newest site for the community: CakePHP Video Tutorials

Re: Model Associations

2012-05-24 Thread Mike Griffin
Server Native Client 11.0][SQL Server]The multi-part identifier Accounts.Account could not be bound. Are you saying that the Accounts.Account and Accounts.AccountID are different fields and have different values? What's the actual SQL statement that is being created and causes the error? Mike

Re: Model Associations

2012-05-24 Thread Mike Griffin
hope this makes sense. Mike. -- 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: Need help populating a select box

2012-05-23 Thread Mike Griffin
You'll have to add some conditions to get the exact data that you want back but this is the format you want it in. Mike. -- 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

Re: Storing multidimensional Array into Database

2012-05-23 Thread Mike Griffin
varchar(100) NOT NULL, date datetime, PRIMARY KEY (id) ); INSERT INTO deadlines (text, date) VALUES (My First Project Completed, 2011-10-12 00:00:00); Is this what you mean? This isn't really a cakePHP question at all, nor even a PHP question. Mike. -- Our newest site for the community

Re: Storing multidimensional Array into Database

2012-05-23 Thread Mike Griffin
On Wed, May 23, 2012 at 12:54 PM, teji infin teji.in...@gmail.com wrote: yes sir thing is the same bt actually in my code i get an array from somewhere else now that array data i have to insert it in database. And what have you tried so far? Assuming you have a Deadline model, you could try

Re: Storing multidimensional Array into Database

2012-05-23 Thread Mike Griffin
) { do_stuff_with($thing); } I also think you've gone too deep with the foreach loops, given the array that you showed earlier anyway. Where did you have that code in your app? Is it in the controller? What is the name of the controller? Do you get anything back to the screen when you echo $cd; ? Mike

Re: Server Move: Catch old details page url and forward to cake style url

2012-05-15 Thread Mike Griffin
 '/details.php?id=4863' was not found on this server.  What is wrong with my Router? Are you trying to access /details.php?id=4863 as the url? That's not how cake works. Try going to /details or /details/4863 and see what happens then. Mike. -- Our newest site for the community: CakePHP Video

Re: Little help with routes and links

2012-05-08 Thread Mike Griffin
' = '\d+' ) ); Also, have a look at http://book.cakephp.org/2.0/en/development/routing.html#passing-parameters-to-action Mike. -- 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

Re: Get the first link of a post ?

2012-04-27 Thread Mike Griffin
matching against? Is it something in the $post variable? Mike. -- 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

Re: cakephp automatically adding 3 drop down boxes for birthdate

2012-04-23 Thread Mike Griffin
down boxes for year,month day. How can i remove dropdown boxes? Set the type of input field that you want to use in the input tag. $this-Form-input(('birthdate', array('id' = 'select2', 'label'=false, 'type' = 'text')); Mike. -- Our newest site for the community: CakePHP Video Tutorials http

Re: Query produced by $this-User-save($this-data); gives error

2012-04-20 Thread Mike Griffin
. If you do, you will have to make sure that they are being passed properly from the form. Check the output of $this-data to make sure they are being set properly. Mike. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http

Re: How to stop redirecting to login page

2012-04-06 Thread Mike Griffin
automatically getting sent to the login though. It's probably because '/' is not an action. It should be something like this: $this-Auth-allow('index', 'login', 'logout', 'confirm'); Mike. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP

Re: Form Helper usage question

2012-04-06 Thread Mike Griffin
($this) ) but it doesn't either work. It might be a simple thing, but it's something serious for me since i'm just starting with the Framework. Many thanks in advance. You need to echo out the form tags the same way you are echoing Agregar Usario Mike. -- Our newest site for the community: CakePHP

Re: How to stop redirecting to login page

2012-04-05 Thread Mike Griffin
have set your / route in routes.php should have its own Auth-allow line to allow the action. Does that make sense or have I confused it? Don't forget to call parent::beforeFilter(); in the beforeFilter function in your controller so that the appController one still gets called. Mike. -- Our

Re: Problem in edit-view with data from a HABTM-relationship

2012-04-04 Thread Mike Griffin
passing any options to the selectBox so it has nothing to show. Do you want to pick from the entire list of DetailTypes? Try finding all DetailType as a list and using that as the options for the SelectBox. Mike. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org

Re: Problem in edit-view with data from a HABTM-relationship

2012-04-04 Thread Mike Griffin
' ) )); Note the options part of the array. Does that change anything? Mike. -- 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

Re: Problem in edit-view with data from a HABTM-relationship

2012-04-04 Thread Mike Griffin
Fantastic, good to hear. Mike. -- 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: picture virus problem!!!!!

2012-04-02 Thread Mike Griffin
-file.php for more details. Mike -- 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

Re: redirecting problem

2012-04-02 Thread Mike Griffin
' = 'message')); Are there any checks in the message action that might be redirecting back to where it came from? Mike. -- 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

Re: problem of captcha

2012-03-30 Thread Mike Griffin
On Thu, Mar 29, 2012 at 13:07, LITTO CHACKO li...@axtecindia.com wrote: hello ,   @mike my local server is linux centos.. my main server is also linux... i don't know what is problem with server.. everything works fine in local...but when iam uploading it to the mainserver..it is showing

Re: CakePHP Controller Testing with DB Sessions

2012-03-29 Thread Mike Griffin
Have you tried creating the cake_sessions table in your test database? I think you have to manually create the tables in the test database before you can use them. Mike. On Wed, Mar 28, 2012 at 20:57, jcrens8392 runner1...@gmail.com wrote: Hi all, I'm new to Cake and had controller test

Re: problem of captcha

2012-03-29 Thread Mike Griffin
On Thu, Mar 29, 2012 at 07:54, LITTO CHACKO li...@axtecindia.com wrote: My captcha session working fine in local server but it is not working in main server. Are you getting any error messages? What do the webserver access and error logs say? Mike. -- Our newest site for the community

  1   2   3   4   5   6   >