Re: integrating pusher.com with cakephp

2012-08-17 Thread Ryan Snowden (Gmail)
Go on On Aug 17, 2012, at 11:46 PM, Nick Crane wrote: > OK, got it working with the pusher "Event Creator" fine, but when it came to > including the $pusher->trigger('channel','event',arrayofdata); in a > controller method, no joy, there seems to be a timing issue. > > Tried it with pubnub

Re: CakePHP 2.X

2011-12-21 Thread M Kaufman (Gmail)
What about one with a 42u rack in his random location without Internet, operating quite securely, and avoiding theft or notice? Sent from my iPhone On Dec 21, 2011, at 4:50 PM, euromark wrote: > a (web)programmer that doesnt have internet? :) > > > On 21 Dez., 23:56, Ucha19871 wrote: >> ooh

Re: CAKEPHP Email component not working in live server.. how to get the error response why that mail is not going

2011-08-29 Thread Gmail Support
Hi Thanx for your response. But my controller has 4 mail functions but none of the mails are going in Live server only. Still I try to find a solution. When a third party guys hitting our url we are sending mail to users. This is working in my local. But i not used auth component or any authent

Re: CAKEPHP Email component not working in live server.. how to get the error response why that mail is not going

2011-08-22 Thread Gmail Support
no dude... other mail functions from this controller are working fine On Mon, Aug 22, 2011 at 2:05 PM, abhimanyu bv wrote: > maybe you have forgot to configure smtp settings in your cakephp. > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out t

CAKEPHP Group by problem in paginate..

2011-07-23 Thread Gmail Support
CAKEPHP Group by problem in paginate.. This is my table structure Friends Table `id` int(11) NOT NULL AUTO_INCREMENT, `user1_id` int(11) NOT NULL DEFAULT '0',--> UserFrom `user2_id` int(11) NOT NULL DEFAULT '0',---> UserTo I need to get all the unique records of one user and his user1_i

Re: Accessing data just saved from view

2010-10-11 Thread Vivian Bogdan Gmail
On 10/12/2010 4:43 AM, Jonathan Sibley wrote: Hi all, After a long search, I posted here for help, and after even more search I found the solution I was looking for. In the PhotoController add() I am passing the data from the recently saved Photo row to the view with: function add() {

Curl NOBODY problem

2010-06-15 Thread Manolet Gmail
Hi, i want to obtain the headers for this link http://freedfd.googlecode.com/files/FreeDFD-1.1.zip i set up this config for curl: $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt ($ch, CURLOPT_HEADER, true); curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/4.0

rendimiento al editar archivos binarios

2010-05-26 Thread Manolet Gmail
Saludos, la pregunta que hare aqui no esta necesariamente relacionada con cake, pero cometo el pecado de hacerla en la lista por si alguien sabe como ayudarme, pues estoy usando cakephp en el proyecto. Actualmente tengo una aplicacion que edita un archivo binario cambiando 16 bytes que estan en la

Re: how to add a relationship whit other key different to the PK

2010-04-28 Thread Manolet Gmail
ur > purpose. > > COme to think of it, I may be wrong. I vaguely recall an RC for > Cake1.2 causing problems when the condition is not an array... and I > think you might need a string contition. > > > On Apr 28, 12:54 am, Manolet Gmail wrote: > > Hi, i have this table

how to add a relationship whit other key different to the PK

2010-04-27 Thread Manolet Gmail
Hi, i have this tables: Software Reviews Mirror Requirements Published Now, this is the relations: Software Has Many Reviews Software Has Many Mirrors Software HABTM Requirements Works fine. The problem is that i need to resume the tables to get a better response from mysql, the reviews tables

Re: Redirect and ajax form error.

2010-02-01 Thread Manolet Gmail
$this->redirect(array('controller' => 'authors','action'=>'index', 'admin' => true)); stilll broken... i think is a cake bug... On Mon, Feb 1, 2010 at 4:30 PM, ecommy.com wrote: > hmm, maybe try adding the admin url paramete

Redirect and ajax form error.

2010-02-01 Thread Manolet Gmail
Hi. Im sending a form by ajax to /admin/authors/add , the problem is that it tries to execute for 30 seconds and next give up with an error. The problem is obviusly is with this line of code: $this->redirect(array('controller' => 'authors','action'=>'index')); on the admin_add method. If i chan

Redirect and ajax form error.

2010-02-01 Thread Manolet Gmail
Hi. Im sending a form by ajax to /admin/authors/add the problem is that it tries to execute for 30 seconds and next give up with an error. The problem is obviusly this line of code: $this->redirect(array('controller' => 'authors','action'=>'index')); on the add method. If i change it with: Che

Plural Singular with software

2009-07-30 Thread Manolet Gmail
Hi, im building an application to collect pieces of software. the problem is that "software" dont have a plural form. i dont know what to do, i know i can create an inflector but... i dont know how to call the array for the foreachs, i mean foreach ($software(plural) as $software(singular) i know

RE: cake:nocache and uncached views

2009-02-16 Thread Keith Norris Gmail
I think Alfredo probably meant wrap just the nocache tags, like this: check('Message.flash')) $session->flash(); ?> - Keith --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

Re: Question on the best way to proceed and stay true to MVC/CakePHP philosophy

2008-10-14 Thread Manolet Gmail
you can do a command controller, but anyway you should write the list of commands, there is a quick example (please correct it is just a guide) class commandcontroller extends appcontroller{ function index($command = 'error'){ if(function_exist( $this->{$command}()) ){ $this->{$command}() }else{

Re: Working with INNER JOIN tables

2008-02-24 Thread gmail (codehooligans)
Taka, I'm fairly new to Cake myself but can tell you that is you have your model setup correct to link the tables then this INSERT, UPDATE, DELETE will be taken care of (see further below). If you are running the INNER JOIN as some custom code in the controller then you are pretty much on

R: Menu from database

2007-03-18 Thread GMail
I made a little test and I have put: pr($this->uses); exit(); in cake/libs/controller/controller.php __construct() function, before it exiting. What I discovered was that if you set $uses to null or an empty array() in your controller it overrides the declaration in app_controller, d

R: Overriding foreign key conventions

2007-03-18 Thread GMail
Yes you can For belongsTo: var $belongsTo = array( 'BelongClass' => array( 'classname' => 'BelongClass', 'foreignKey' => 'your_foreign_key_field_id' ) ); var $hasMany = array( 'HasManyClass' => array( 'className' => 'HasMan

R: Class dependence and overriding Methods to do garbage collection on files

2007-03-17 Thread Marco \(GMail\)
Looking at the Api the beforedelete function is cahined from the del function del($id = null, $cascade = true) { 00957 if ($id) { 00958 $this->id = $id; 00959 } 00960 00961 $id = $this->id; 00962 00963 if ($this->exists() && $this->beforeDelete()) {

R: Format ID field throughout

2007-03-17 Thread Marco \(GMail\)
All ok but you must return $results ;-) function afterFind($results) { foreach ($results as $result_id => $result) { $results[$result_id]['Model']['id'] = 'FLW' . $result['Model'] ['id']; } return $results; // << } -Messaggio originale- Da: cake-php@googlegroups.com [mailto:[

R: savefield woes

2007-03-16 Thread GMail
I think you have a typo function admin_toggleactive($id = null){ if (!$id) return; $this->layout = 'ajax'; $this->autoRender = false; $this->Project->id = $id; // And not $this->id = $id $project = $this->

R: Jake 1.0.3b Released (Joomla-CakePHP bridge)

2007-02-18 Thread GMail
your knowledge. > > BAKE ON! > > blog: http://www.MarianoIglesias.com.ar > > -Mensaje original- > De: cake-php@googlegroups.com > [mailto:[EMAIL PROTECTED] En nombre de GMail Enviado > el: Domingo, 18 de Febrero de 2007 10:53 a.m. > Para: cake-php@googlegroups

R: Jake 1.0.3b Released (Joomla-CakePHP bridge)

2007-02-18 Thread GMail
Hello Mariano: There is other problemd related to clone method with php5. I've resolved applying this patch around line 294 of jake_component.class.php if (version_compare(phpversion(), '5.0') < 0) { $settings = clone($elements['settings']); } else { $settings = $elements['settings']; } Don't

R: Any diagram to sql DDL script generator for MySQL?

2007-02-16 Thread Marco \(GMail\)
Try this http://fabforce.net/dbdesigner4/ -Messaggio originale- Da: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Per conto di [EMAIL PROTECTED] Inviato: venerdì 16 febbraio 2007 22.28 A: Cake PHP Oggetto: Re: Any diagram to sql DDL script generator for MySQL? The MySQL tools

R: Wrapping Cake in a Joomla component, like Cake + Drupal = Drake

2007-02-14 Thread GMail
Hello Mariano even I use exclusively both joomla and Cake for development of my web projects. Can I participate to this thing? Maybe I can give my contribution. TIA > -Messaggio originale- > Da: cake-php@googlegroups.com > [mailto:[EMAIL PROTECTED] Per conto di Mariano Iglesias > Inviat

R: How to validate a custom form?

2007-02-07 Thread GMail
Yes you are right Your answer is arrived me after I have posted mine. The only advantage of my method is that you don't need to create the dummy class using var $uses = null in your controller. > > Follow my previous example. There's no need for you to add > the validation on > your controller

R: How to validate a custom form?

2007-02-07 Thread GMail
Yes you are right Your answer is arrived me after I have posted mine. The only advantage of my method is > -Messaggio originale- > Da: cake-php@googlegroups.com > [mailto:[EMAIL PROTECTED] Per conto di Mariano Iglesias > Inviato: mercoledì 7 febbraio 2007 19.28 > A: cake-php@googlegroup

R: How to validate a custom form?

2007-02-07 Thread GMail
For example (If I have understood right) Define a dummy model custom.php - In your view use something like: input('Custom/email'); ?> tagErrorMsg('Custom/email', $emailError); ?> And in your controller if($this->data['Custom']['email'] == '') { $this->set('emai

R: Custom Scaffold view

2007-02-06 Thread Marco \(GMail\)
This is tested and work :) action == 'index') { unset($this->viewVars['fieldNames']['field01']; unset($this->viewVars['fieldNames']['field02']; unset($this->viewVars['fieldNames']['field03']; } return true; } } ?> -Messaggio originale- Da: cake-php@googlegr

R: Custom Scaffold view

2007-02-06 Thread Marco \(GMail\)
Excuse me for double posting but there is a typo in the preceding message This is tested and work :) action == 'index') { unset($this->viewVars['fieldNames']['field01']); unset($this->viewVars['fieldNames']['field02']); unset($this->viewVars['fieldNames']['field03']); }

R: Bake in tables without standard of cakephp

2007-02-06 Thread GMail
Just to know. Is the name of your model filename: tb_cliente.php ? Is the definition of your class: class TbCliente extends AppModel { ? Have you defined in config/inflections.php something like: $uninflectedPlural = array('*cliente'); ? (this only to prevent plu

R: idea: trace things into a log window

2007-01-29 Thread GMail
I had a little problem with firecake to work changed line 156 of the helper From: // $b = file(ROOT . DS . APP_DIR . DS . 'webroot' . DS . 'index.php'); To: $b = file(WWW_ROOT . 'index.php'); This will work with installation of the site off of standard app\webroot (as in my inst). > -M

R: Pluralisation and bake error

2007-01-26 Thread Marco \(GMail\)
In /app/config/inflections.php add all words that you want uninflected For examples I think this can solve your problem $uninflectedPlural = array('competencia'); -Messaggio originale- Da: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Per conto di albertordz Inviato: saba

R: Ready to upload cakePHp files to my Hostgator account.

2007-01-26 Thread Marco \(GMail\)
I prefer this type of layout: For single application /Httpdocs /CakeCore /app /www For multiple application on same web site /Httpdocs /CakeCore /Application01 /app /www /Application02 /app /www -Messaggio originale- Da: cake-php@googlegroups.com [m

R: Component vs. AppController vs. requestAction

2007-01-26 Thread GMail
> -Messaggio originale- > Da: cake-php@googlegroups.com > [mailto:[EMAIL PROTECTED] Per conto di AD7six > Inviato: venerdì 26 gennaio 2007 14.21 > A: Cake PHP > Oggetto: Re: Component vs. AppController vs. requestAction > > > > > On Jan 26, 11:23 am, "marco" <[EMAIL PROTECTED]> wro

Re: News Archive/Events Archive

2006-08-26 Thread John Zimmerman [gmail]
I am replying basically so this does not go unanswered.  Your question really covers too much to give a reply in a news group.Your desired functionality is not too hard to conceptualize once you get familiar with the Cake basics. You should be able to start with the blog tutorial in the manual (htt

Re: setup problem

2006-08-26 Thread John Zimmerman [gmail]
Yeah, that is why I wasn't getting it.The elearning folder should not have been created.On 8/26/06, bingo < [EMAIL PROTECTED]> wrote:Hi John,I think there is some miscommunication. Sorry If I am confusing you. Actually, everything is created within the application (app) folder.What I am not underst

Re: setup problem

2006-08-26 Thread John Zimmerman [gmail]
That is odd.  Everything in the elearning folder should have been created in the app folder.If you merge your app folder and your elearning folder you should be good to go.I would try running the bake.php script one more time as well to see where it is creating the files for sure.  Maybe the mod_re

Re: setup problem

2006-08-26 Thread John Zimmerman [gmail]
Please post back with the paths relative to your cake installation.  It sounds like you are either confusing the way plugins are structured with the way a full application is structured or are trying to do things 'non-standard'. Normally you would develop your whole application in /app and develop

Re: setup problem

2006-08-26 Thread John Zimmerman [gmail]
AFAIK bake.php will only operate on the /app folder structure.i.e. /app/controllers, /app/models, /app/views/controller_nameSo if my controller is called 'posts' and my model is called 'post' and I have the default actions 'add', 'view', 'edit', and 'delete' the bake.php script would generate the

Re: setup problem

2006-08-26 Thread John Zimmerman [gmail]
It sounds like mod_rewrite is not enabled.Please post back with the following and someone can walk you through enabling it on your system.Operating System:WebServer (i.e. Apache2):Bundle If Applicable ( i.e. WAMP, XAMPP, etc..):On 8/26/06, bingo <[EMAIL PROTECTED]> wrote: hi,I have two questions re

Re: search form.

2006-08-26 Thread John Zimmerman [gmail]
It is hard to give a specific example without your db schema and what type of search query you want to perform.But from the information you gave it seems that a "fulltext" search would be the easiest to implement. Here is an article on how to setup fulltext on your database with how to query it.htt

Re: Alternating Row Colors

2006-08-20 Thread John Zimmerman [gmail]
dangit, dangit, dangit..I need to research the helpers more.Thanks for the snippet, I will go back and recode the appropriate sections of my code.On 8/20/06, sicapitan <[EMAIL PROTECTED]> wrote: AD7 is right, tablecells does this automatically, and you can set theclaternating colours$html->tableCe

Re: User Bar Logic

2006-08-20 Thread John Zimmerman [gmail]
Is 'Username' really capitalized as the table name in your schema?Cake conventions would make this lowercase.So if you made it lower case in the db schema, but then try to refer to it as sentence/camel case the variable Username would not actually exist because it is really 'username'. On 8/20/06,

Re: User Bar Logic

2006-08-19 Thread John Zimmerman [gmail]
I am pretty sure I have something in one of my apps setting variables in app_controller and readin the info in the default template.  I will double check.What I am doing for login info though is setting it in the session and then checking for it in the default template. So you can always set a vari

Re: Alternating Row Colors

2006-08-19 Thread John Zimmerman [gmail]
I have been doing something something similar in my views. $row): ?>>     I have the altRow class defined in my style sheet. On 8/19/06, c_doug <[EMAIL PROTECTED]> wrote: Can anyone tell me how to alternate row colors in CakePHP? Is itsimilar to doing it in regular PHP?Ex:$row_color = ($row_count %

Re: Cross Application Sesssion

2006-08-18 Thread John Zimmerman [gmail]
You might hop on IRC for this one. I am not sure many of us have tried this before, but you should be able to find someone in the IRC channel to give you a definitive answer. On 8/18/06, Mandy Singh <[EMAIL PROTECTED]> wrote: > I would be really helpful to get an answer on this one. > > I even t

Re: Trying CakePHP for the first time and get error

2006-08-18 Thread John Zimmerman [gmail]
Out of curiousity what zip program did you use to extract the downloaded archive. The empty directories are included in the archive, but some extraction utilities do not create the empty directories upon extraction to the filesystem. On 8/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > F

Re: Remove Powered By

2006-08-17 Thread John Zimmerman [gmail]
No.  Cake is distributed under the MIT license.http://en.wikipedia.org/wiki/MIT_Licensehttp://www.opensource.org/licenses/mit-license.php On 8/17/06, Simplerules <[EMAIL PROTECTED]> wrote: I couldn't find the exact license on the site, do I have to leave inthe 'Powered by CakePHP' icon and referenc

Re: Change Template

2006-08-17 Thread John Zimmerman [gmail]
copy the file from /cake/libs/view/templates/layouts/default.thtmlto/app/views/layouts/default.thtmlAnd start editing the new file in your application directory.  It will override the default. On 8/17/06, Simplerules <[EMAIL PROTECTED]> wrote: I just setup CakePHP, how can I change the default main

Re: How to operate relational database in cakephp

2006-08-16 Thread John Zimmerman [gmail]
Can you post pastes of your models?http://cakephp.org/pastes/addIt seems like if you get the relationships setup right and the table structure is solid it shouldn't be a problem. I we can look at your models and possibly your DB schema we can suggest some changes and then at the very least you shou

Re: How to associate models without tables?

2006-08-16 Thread John Zimmerman [gmail]
The flexibility of not having a table would only be short term however.When it comes time to add features or expand your application you might be finding yourself needing to add the table anyway.It is a little more work upfront, but in the long run it can save you some headache. On 8/16/06, [EMAIL

Re: Outputting Code on a Website

2006-08-16 Thread John Zimmerman [gmail]
It looks like CakeBin is using GeSHli (which looks like what I was looking for).Thanks for the replies.On 8/16/06, Chris Lamb < [EMAIL PROTECTED]> wrote:HiOn Wed, 16 Aug 2006 15:19:59 -0700 "John Zimmerman [gmail]" <[EMAIL PROTECTED]> wrote:> Basically I just want to disp

Outputting Code on a Website

2006-08-16 Thread John Zimmerman [gmail]
Here is what I want to do.  I have only done a little research, but just want to know if anyone has any recommendations.I want to output the contents of a php file to a webpage so that it willDisplay the complete unprocessed code within a box inside my layout I would like it to format and do syntax

Re: How to associate models without tables?

2006-08-16 Thread John Zimmerman [gmail]
You can setup a database table that is basically an index into your file system.This might be helpful if you want to store metadata about the files as well.  Gallery does this for images too.So your table would have and id, name, description, location, etc, and a path field. The path field is where

Re: API documentation needs stylesheet change

2006-08-16 Thread John Zimmerman [gmail]
All I did was file the ticket.I don't do any "actual work" :-)Thanks gwoo/nate.On 8/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Wow! Fast work, gwoo and John. That is most helpful. You guys rock.Thank you.Best regards,Ralph --~--~-~--~~~---~--~~ You receive

Re: How to upload image? Please give me a example,thanks!

2006-08-16 Thread John Zimmerman [gmail]
After you make the changes you can post back with code and/or errors if you are still having problems.If you paste your code into a bin at          http://cakephp.org/pastes/add we can look at your code easier and apply changes.Just post back with your problem and a link to your bin.On 8/15/06, ge

Re: API documentation needs stylesheet change

2006-08-15 Thread John Zimmerman [gmail]
Gwoo updated the stylesheet already.http://api.cakephp.org/class_controller.htmlRefresh your the page if it doesn't show up.I marked it as trivial because it did not present a security concern or logical error in a code example that could lead to unworkable code (which can be very frustrating and/o

Re: Inflector bug or newbie mistake?

2006-08-15 Thread John Zimmerman [gmail]
Your controller needs to be plural.addresses_controller.phpclass AddressesController extends AppController{    var $name = "Addresses";}On 8/15/06, jbernat <[EMAIL PROTECTED]> wrote: I am baking my first Cake app, and I created a controller named"address_controller.php" for a table named "addresse

Re: API documentation needs stylesheet change

2006-08-15 Thread John Zimmerman [gmail]
Donehttps://trac.cakephp.org/ticket/1321On 8/15/06, nate < [EMAIL PROTECTED]> wrote:We don't respond to requests or bugs posted here.  You can open a ticket at https://trac.cakephp.org/Thanks. --~--~-~--~~~---~--~~ You received this message because you are subsc

Re: get CakePHP version

2006-08-09 Thread John Zimmerman [gmail]
must be able to access the file_get_contents function for local files.  You can possibly just include the file as well.  Haven't tried it, but it will proably work and be more portable. On 8/9/06, John Zimmerman [gmail] <[EMAIL PROTECTED]> wrote: creat a function that checks parameters fo

Re: get CakePHP version

2006-08-09 Thread John Zimmerman [gmail]
creat a function that checks parameters for a special keyword http://example.com/keywordThat function would be in app_controller.php and in your constructor you just check for the keyword and if it is there call your function. Your function will then output the contents of the version.txt file to t

Re: Can you find out the last controller/action?

2006-08-07 Thread John Zimmerman [gmail]
Thanks for the function.  I should have searched the API.On 8/7/06, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote:Exactly what I was looking for Chris - thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP"

Re: Can you find out the last controller/action?

2006-08-07 Thread John Zimmerman [gmail]
This won't work all the time and can't be completely trusted, but you can write a function to deal with different scenarios based on the contents of $_SERVER['HTTP_REFERER'].Not all browsers will report it, and some will report it incorrectly on purpose. But you should be able to determine the acti

Re: Comment in Simple User Authentication example is wrong

2006-08-04 Thread John Zimmerman [gmail]
https://trac.cakephp.org/ticket/1268On 8/4/06, John Zimmerman [gmail] < [EMAIL PROTECTED]> wrote:Sorry.  Didn't catch the first part of the post.  I will submit the bug right now. What was the hangup with submitting a ticket on trac?On 8/4/06, John Zimmerman [gmail] <[EMAIL PROTECTE

Re: Comment in Simple User Authentication example is wrong

2006-08-04 Thread John Zimmerman [gmail]
Sorry.  Didn't catch the first part of the post.  I will submit the bug right now.What was the hangup with submitting a ticket on trac?On 8/4/06, John Zimmerman [gmail] <[EMAIL PROTECTED]> wrote: Do you mind submitting a ticket on http://trac.cakephp.org?That way it gets on their todo

Re: Comment in Simple User Authentication example is wrong

2006-08-04 Thread John Zimmerman [gmail]
Do you mind submitting a ticket on http://trac.cakephp.org?That way it gets on their todo lists.On 8/3/06, ebourqui <[EMAIL PROTECTED]> wrote: Not really a question, but a statement, since I couldn't submit a bugat trac.cakephp.org;The comment in the Simple User Authentication section of the CakeP

Re: Pages Controller Subpages

2006-08-04 Thread John Zimmerman [gmail]
/pages/about/company.thtmlKind of a basic question but hope it helps someone else. On 8/3/06, John Zimmerman [gmail] <[EMAIL PROTECTED]> wrote: In the code for the pages controller there are variables there for subpages.Is anyone using static subpages with the pages controller?I browsed arou

Pages Controller Subpages

2006-08-03 Thread John Zimmerman [gmail]
In the code for the pages controller there are variables there for subpages.Is anyone using static subpages with the pages controller?I browsed around for documentation about it, but came up empty. --~--~-~--~~~---~--~~ You received this message because you are subs

Re: FCK eventually sorted out - For AD7Six (and those interested)

2006-08-01 Thread John Zimmerman [gmail]
Nevermind.  WidgEditor does not load if you have an onload function defined in your body tag.I had Kind of annoying.  I was preloading images with my startup function. On 8/1/06, John Zimmerman [gmail] <[EMAIL PROTECTED]> wrote: @Jon BennettCan you post a snippet of what you did to get widg

Re: FCK eventually sorted out - For AD7Six (and those interested)

2006-08-01 Thread John Zimmerman [gmail]
@Jon BennettCan you post a snippet of what you did to get widgEditor working?  I am trying to get it up and running but can't get it to load within cake.ThanksOn 7/24/06, Jon Bennett <[EMAIL PROTECTED]> wrote: > > (and this is just my personal preference), I've much preferred TinyMCE> > to FCK.  I

Re: Advanced Routing question/ 疑问

2006-07-29 Thread John Zimmerman [gmail]
I believe this would mean that either one or more of your .htaccess files are missing or mod_rewrite is not working.There are 3 .htaccess files/.htacess/app/.htaccess/app/webroot/.htaccess Check to make sure they are all present and are readable by the webserver.If all are present and readable chec

Re: PagesController and titles

2006-07-28 Thread John Zimmerman [gmail]
w, or model and you can get quite a bit of information.On 7/28/06, Sergei < [EMAIL PROTECTED]> wrote:John Zimmerman [gmail] писал(а):> pageTitle = 'New Title For Static Page'; ?> damnit. I knew there is a better method!Though I don

Re: PagesController and titles

2006-07-28 Thread John Zimmerman [gmail]
An easier way is to set the page title in the actual static page file.You can do this at the top of the file in PHP code.  This way you do not have to modify the pages_controller.php unless you really want to. So in your file /app/views/pages/my_static_page.thtmlPut this line at the top of the file

Pages / CMS / Routing Idea (looking for some feedback)

2006-07-26 Thread John Zimmerman [gmail]
Here is what I am currently thinking about doing (maybe someone has already done it or tried).  I am just looking for some feedback on this.So the ultimate goal is to get rid of the "pages" or "posts" part of the url http://example.com/pages/home, without having to specify a new route definition f

Re: website prototyping

2006-07-22 Thread John Zimmerman [gmail]
If you are looking to generate some UI mockups you could use http://www.nvu.com/index.phpIf you are looking to do sort of a screencast type demo, Wink is not open source, but it is a very good free program.  http://www.debugmode.com/wink/On 7/22/06, codecowboy <[EMAIL PROTECTED] > wrote:Does anyon

Re: How to use value used in input tag in view

2006-07-22 Thread John Zimmerman [gmail]
Also, I don't know if this is causing you a problem or not, but it would be a best practice to follow the Cake conventions (http://manual.cakephp.org/chapter/22) whenever it is practical to do so. The piece of code I am refering to most is the capitalization of First_name, both in the database and

Re: Why my fav.ico does not work properly?

2006-07-22 Thread John Zimmerman [gmail]
In Internet Explorer 6 save the page to your favorites.Then navigate to another page (i.e. Google.com).Then click on the page you saved in your favorites.That brings it up 100% in Internet Explorer for me. Also, how did you create your favicon?  Did you embed sizes other than 16x16?On 7/22/06, RosS

Re: How to use value used in input tag in view

2006-07-22 Thread John Zimmerman [gmail]
Is your field name actually 'First_name' or is it 'first_name'?This might be part of the problem.When you sumit the form via 'post' your value should come in an array called $data in the controller. In the controller action you are submitting to insert the following code near the top and you can se

Re: Installation Headaches

2006-07-21 Thread John Zimmerman [gmail]
I just took a look at your URL you provided.  It is displaying the contents of /app/webroot so it appears that  mod_rewrite is working, but since it is not making it out of /app/webroot I would double check that the .htaccess file at /app/.htaccess exists. Also check to make sure the web server has

Re: Missing Database Table

2006-07-21 Thread John Zimmerman [gmail]
no problem.  glad it works.On 7/21/06, Matt2012 <[EMAIL PROTECTED]> wrote: Argh! username was connecting but didnt have permission on that tablechanged it toon that has full access problem solved! Sorry for wasting your time onthis, but your questions stopped me going round and round in circles so

Re: Missing Database Table

2006-07-21 Thread John Zimmerman [gmail]
One more thing before I think I am stumped.Can you post the contents of your /app/config/database.php file?So far everything looks ok as far as I can tell.If someone can't figure it out after that you might hop on the IRC channel and see if you can pick somebody's brain there. On 7/21/06, Matt2012

Re: Missing Database Table

2006-07-21 Thread John Zimmerman [gmail]
What versions of the following are you using: PHP, DB Type and Version (i.e. MySQL 5),  CakePHP?What operating system are you running the webserver on?And can you dump the SQL schema for your database as well? One thing to double check is that the table name is the plural form instead of singular. 

Re: Missing Database Table

2006-07-21 Thread John Zimmerman [gmail]
http://www.cakephp.org/pastes/addCan you create some pastes of your code?On 7/21/06, Matt2012 < [EMAIL PROTECTED]> wrote:Dont know whats happening - CAKE loading fine the homepage definitely connecting to the right database but what ever table I putinuseTable its saying its missing. (I started off

Re: Bug: using multiple models in controller

2006-07-21 Thread John Zimmerman [gmail]
I believe if you add the multiverse onto the end of any line of your sources.list that has universe and then do an 'aptitude search java' you will get the sun packages again.  Just run 'aptitude install packagename'. I did this with Ubuntu and it works fine.Should be similar with a straight Debian

Re: creating a selectTag from an enum in the model

2006-07-21 Thread John Zimmerman [gmail]
I posted a solution for my enum problem as a snippet if anyone is interested.It needs some optimization and checking for robustness,  but it is a more generic solution that can be re-used in all your models/controllers. http://cakeforge.org/snippet/detail.php?type=snippet&id=112If anyone has sugges

Re: Save Date < 1970

2006-07-21 Thread John Zimmerman [gmail]
rom storing dates below 1970On 7/21/06, John Zimmerman [gmail] <[EMAIL PROTECTED]> wrote: So far I am unable to get  $html->dateTimeOptionTag() to display a year below 1946, but I did manually modify the database entry to make the year 1700 and it displays correctly when I view the timestamp

Re: Save Date < 1970

2006-07-21 Thread John Zimmerman [gmail]
any insight into the dateTimeOptionTag?On 7/21/06, John Zimmerman [gmail] <[EMAIL PROTECTED] > wrote:And the webserver is Apache on Debian On 7/21/06, John Zimmerman [gmail] < [EMAIL PROTECTED]> wrote: What version of CakePHP are you using?  What version of PHP and MySQL?I just did a g

Re: Save Date < 1970

2006-07-21 Thread John Zimmerman [gmail]
And the webserver is Apache on DebianOn 7/21/06, John Zimmerman [gmail] <[EMAIL PROTECTED]> wrote: What version of CakePHP are you using?  What version of PHP and MySQL?I just did a grep on the cake directory and found no reference to mktime(). I then setup a test model/controller/view and

Re: Save Date < 1970

2006-07-21 Thread John Zimmerman [gmail]
What version of CakePHP are you using?  What version of PHP and MySQL?I just did a grep on the cake directory and found no reference to mktime().I then setup a test model/controller/view and used a "DATETIME" MySQL field type.  I scaffolded everything and CakePHP brought up 1946 as the earliest yea

Re: Why my fav.ico does not work properly?

2006-07-21 Thread John Zimmerman [gmail]
Try the following...  " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">     Title     url('/favicon.ico');?>" type="image/x-icon" />     charset('ISO-8859-1'); ?>             css('default'); ?>    

Re: Why my fav.ico does not work properly?

2006-07-21 Thread John Zimmerman [gmail]
Didn't try your code out yet, but right off your closing head tag is invalidneeds to be On 7/21/06, saavedrajj < [EMAIL PROTECTED]> wrote:mmm... doesn't work, this is my code"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  Title charset('ISO-8859-1'); ?>   css('default'); ?>   -

Re: Why my fav.ico does not work properly?

2006-07-21 Thread John Zimmerman [gmail]
url('/favicon.ico');?>" type="image/x-icon" />This one adds the full url using the Cake HtmlHelper On 7/21/06, John Zimmerman [gmail] <[EMAIL PROTECTED]> wrote: Also make sure to clear the cache, close, and then re-open the browser (especially IE) to get the

Re: Why my fav.ico does not work properly?

2006-07-21 Thread John Zimmerman [gmail]
Also make sure to clear the cache, close, and then re-open the browser (especially IE) to get the favicon to display.  Some versions of IE only display the favicon if you save the site in your Favorites. On 7/21/06, John Zimmerman [gmail] <[EMAIL PROTECTED]> wrote: Should be And mak

Re: Why my fav.ico does not work properly?

2006-07-21 Thread John Zimmerman [gmail]
Should be And make sure your favicon is in /app/webroot/favicon.icoOn 7/21/06, saavedrajj <[EMAIL PROTECTED] > wrote:I just add the linein app/views/layouts/default.thtmland nothing happensif I copy the favicon.ico at app/webroot/imgand then add the line:type="image/x-icon">only works on Firefo

Re: Point of Sanitize->sql?

2006-07-21 Thread John Zimmerman [gmail]
Only if magic quotes is enabled in php.iniOn 7/20/06, yeastinflexion <[EMAIL PROTECTED]> wrote: i thought php automatically addslashes to posted data? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group.

Re: Admin Route

2006-07-20 Thread John Zimmerman [gmail]
I have the same kind of setup going except that my 'admin_controller.php' is actually called 'administrators_controller.php'My route looks like $Route->connect('/admin', array('controller' =>'administrators', 'action' =>'index'));I have no problems using it this way, and I maintain administrators s

Re: Need examples of CakePHP driven e-commerce sites

2006-07-20 Thread John Zimmerman [gmail]
BakeSale is one in progress I believe.I will have a custom site done by the end of the month that is an ecommerce store.  After it is running I will look at extracting a distributable application with it.Can you think of any reason not to use it for ecommerce? On 7/20/06, 379 the manifesto <[EMAIL

Re: Getting scaffolding to work in /admin

2006-07-19 Thread John Zimmerman [gmail]
Baking your controllers for the admin section would be the best solution.You will get the main funcitonality of scaffolds which can then be customized to create a proper admin interface and change over time. Even if it worked, if you rely on scaffolding for any part of your site that is not tempora

  1   2   3   >