Re: Extraccion de datos de sitio web

2013-04-09 Thread Pablo Viojo
Juan, Check the HttpSocket class http://book.cakephp.org/2.0/en/core-utility-libraries/httpsocket.html Best, -- Pablo Viojo Skype: pablo.viojo Cel: +56 9 74974394 http://tiopaul.io 2013/4/9 AD7six > English please - or write to the ES group. > > Cheers, > > AD > >

Re: Helper problem after moving application to new server

2012-02-03 Thread Pablo Viojo
check if you have some files with an uppercase letter. Windows is case-insensitive while linux is case-sensitive. Saludos, Pablo Viojo CTO, Groupon Latinoamerica http://tiopaul.io http://www.groupon.com.ar http://www.groupon.cl http://www.groupon.com.co http://www.groupon.com.mx http

Re: URL Case

2011-04-17 Thread Pablo Viojo
Regarding the $_GET['url'] question, check the webroot/.htaccess file, especially the line: RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] This is used by cakephp to handle friendly urls Saludos, Pablo Viojo CTO, Groupon Latinoamerica pablo.vi...@groupon.com http://www.groupon.c

Re: URL Case

2011-04-17 Thread Pablo Viojo
at line 2 of index.php if ($_SERVER['REQUEST_URI']!=strtolower($_SERVER['REQUEST_URI'])){ header("HTTP/1.1 301 Moved Permanently" ); header("Location: " . strtolower($_SERVER['REQUEST_URI'])); } (from memory, maybe something is wrong) Saludos

Re: mac users, which ide are you using to develop cakephp?

2010-04-19 Thread Pablo Viojo
Eclipse PDT Regards, Pablo Viojo pvi...@gmail.com | http://pviojo.net http://twitter.com/tiopaul (@tiopaul) | LinkedIn profile: http://cl.linkedin.com/in/pviojo ¿Que necesitas? http://www.needish.com On Mon, Apr 19, 2010 at 11:29 AM, Jon Bennett wrote: > > No ide, just Textmate

Re: Need AJAX to terminate and reload entire page

2010-03-26 Thread Pablo Viojo
There's no way to controller the reload of the current page or a only a part from the controller. You should send an special reponse to the javascript (ie:a simple "reload" string could work), and at the client side do something like document.location="youurl"

Re: Caching a view for all/any user

2010-03-21 Thread Pablo Viojo
AFAIK, Cake built-in cache for views is not related to the user viewing the content. Best regards, Pablo Viojo pvi...@gmail.com | http://pviojo.net http://twitter.com/tiopaul (@tiopaul) | LinkedIn profile: http://cl.linkedin.com/in/pviojo ¿Que necesitas? http://www.needish.com On Sun, Mar 21

Re: cake php

2010-03-19 Thread Pablo Viojo
Try changing Configure::write('debug', 0); to Configure::write('debug', 1); in core.php Pablo Viojo pvi...@gmail.com | http://pviojo.net http://twitter.com/tiopaul (@tiopaul) | LinkedIn profile: http://cl.linkedin.com/in/pviojo ¿Que necesitas? http://www.needish.com On

Re: php in database

2010-03-08 Thread Pablo Viojo
Pablo Viojo pvi...@gmail.com http://pviojo.net ¿Que necesitas? http://www.needish.com On Mon, Mar 8, 2010 at 5:49 PM, braincramp wrote: > Hi, I have a CMS application and would like to include $html->link() ?> and other such tags inside the content of pages that > are stored in

Re: Can't configure Memcached properly

2010-02-16 Thread Pablo Viojo
The configuration that I send allows you to use memcached (or whatever you like) for all caches but the internal cake's cache (that should use file) I have this configuration in a prod environment (using several memcached servers) and it works fine. Regards, Pablo Viojo pvi...@gmail.com

[OT] Redis, Memcached and CakePHP

2010-02-12 Thread Pablo Viojo
Sorry for the OT and the quite general questions Has anybody used Redis and Memcached with a CakePHP app? Any comments about performance, scalability, etc will be great appreciated Thanks in advance! Regards Pablo Viojo pvi...@gmail.com http://pviojo.net ¿Que necesitas? http

Re: Can't configure Memcached properly

2010-02-12 Thread Pablo Viojo
fig('_cake_model_', array('engine' => 'File')); before Cache::config('default', ... If you do this, remember to check if app/tmp/cache/models app/tmp/cache/persistent and app/tmp/cache/views exists and has read/write privileges Regards Pablo Viojo pvi

Re: urgent help

2010-02-08 Thread Pablo Viojo
Reading the error message, and googling for it, helps a lot :) Regards, Pablo Viojo pvi...@gmail.com http://pviojo.net ¿Que necesitas? http://www.needish.com On Mon, Feb 8, 2010 at 3:03 PM, priyanka123 wrote: > > hi, > thanx alot..my code worked out... > > > Thanks.

Re: PHP proxy in CakePHP

2010-01-27 Thread Pablo Viojo
app/webroot is the right place. Try accesing /url_proxy.php directly from the browser and see what happens Regards! Pablo Viojo pvi...@gmail.com http://pviojo.net ¿Que necesitas? http://www.needish.com On Wed, Jan 27, 2010 at 11:14 AM, thomaus wrote: > Hi there, > > I need to do

Re: Error after adding database.php file to project (happening on Windows and Ubuntu)

2010-01-21 Thread Pablo Viojo
Please post your database.php file Regards Pablo Viojo pvi...@gmail.com http://pviojo.net ¿Que necesitas? http://www.needish.com On Thu, Jan 21, 2010 at 10:07 PM, cricket wrote: > Check to make sure there is no whitespace after the closing "?>" in > database.php. Even

Re: New to Cache

2010-01-09 Thread Pablo Viojo
Your current config has all path set to CACHE, so all the cache files will be written to the cache folder, try setting diferent 'prefix' settings so you can check which configuration is being used. Regards Pablo Viojo pvi...@gmail.com http://pviojo.net ¿Que necesitas? http://www.n

Re: New to Cache

2010-01-09 Thread Pablo Viojo
There's an error in your code: if ($state_cache !== false) should be if (empty($state_cache)) or something like that. Change it and try again. Regards Pablo Viojo pvi...@gmail.com http://pviojo.net ¿Que necesitas? http://www.needish.com On Sat, Jan 9, 2010 at 9:06 PM, Dave

Re: New to Cache

2010-01-09 Thread Pablo Viojo
Try passing the config as third param when writing and second when reading: Cache::write('state_cache', $state_cache, 'long'); Cache::read('state_cache', 'long'); HTH! Regards, Pablo Viojo pvi...@gmail.com http://pviojo.net ¿Que necesitas? http://ww

Re: highest traffic cakePHP 1.2 sites?

2010-01-08 Thread Pablo Viojo
Our site (http://www.needish.com) is having over 50k unique visitors a day and 150-200k pageviews/day. Using nginx, mysql, memcached et al (cake 1.2) Pablo Viojo pvi...@gmail.com http://pviojo.net ¿Que necesitas? http://www.needish.com On Fri, Jan 8, 2010 at 11:16 AM, Dave J wrote: > I

Re: cakephp foreach

2010-01-08 Thread Pablo Viojo
Please elaborate your question. Regards Pablo Viojo pvi...@gmail.com http://pviojo.net ¿Que necesitas? http://www.needish.com On Fri, Jan 8, 2010 at 5:01 AM, Mann da wrote: > i want help about foreach in cakephp, > > thanxs > > Check out the new CakePHP Questions site http:/

Re: How to implement Comet in CakePHP ?

2010-01-02 Thread Pablo Viojo
Forget Comet. Take a look at Jabber (A very good server http://www.igniterealtime.org/projects/openfire/) and JsJac http://blog.jwchat.org/jsjac/ if you want to write a robust chat system. (It will save a lot of time) Regards, Pablo Viojo pvi...@gmail.com http://pviojo.net ¿Que necesitas? http

Re: Getting incremental number from the counter

2009-12-30 Thread Pablo Viojo
? > Store it on a persistent storage like the database, then retrieve it and update accordingly. Regards, Pablo Viojo pvi...@gmail.com http://pviojo.net ¿Que necesitas? http://needish.com Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related que

Re: Get natural SQL built by Model methods like find, save

2009-12-08 Thread Pablo Viojo
If you change debug to 2 in core.php you can see all the queries made. Regards Pablo Viojo pvi...@gmail.com http://pviojo.net ¿Que necesitas? http://needish.com On Tue, Dec 8, 2009 at 7:46 AM, Manish Pithwa wrote: > Hi All, > > Sometimes we want to see what query CakePHP has

Re: Development / Server question

2009-11-26 Thread Pablo Viojo
Having a dev environment using the "live" database seem a very, VERY, bad idea. I hardly discourage you from doing that. Also, having a code version (SVN, git, or whatever you like) is recommended as long as the use of tags or whatever option your system provide. Regards, Pablo

Re: CakePHP performance 1.2 - is future any better?

2009-11-23 Thread Pablo Viojo
Yes, APC and Memcache is a must if you want good performance. Regards, Pablo Viojo pvi...@gmail.com http://pviojo.net ¿Que necesitas? http://needish.com On Mon, Nov 23, 2009 at 5:58 PM, Miles J wrote: > Haha funny you ask. The mozilla addons site actually runs CakePHP 1.1 > an

Re: Blank line before views rendering

2009-11-13 Thread Pablo Viojo
Anyway, it's recommended to remove ?> in controllers, models and any other .php file Regards, Pablo Viojo pvi...@gmail.com http://pviojo.net ¿Que necesitas? http://needish.com On Fri, Nov 13, 2009 at 4:28 AM, PDEagle wrote: > Hi guys, > > I'm creating a blog syste

Re: Help doing this in CakePHP

2009-11-02 Thread Pablo Viojo
You can do something using subqueries (but if you're quering the same table on main and sub query, it will not perform well) I recommend to do two queries instead. Regards, Pablo Viojo pvi...@gmail.com http://pviojo.net ¿Que necesitas? http://needish.com On Mon, Nov 2, 2009 at 8:49 PM,

Re: Help doing this in CakePHP

2009-11-02 Thread Pablo Viojo
Something like this may help: SELECT domain_id, search_engine_id, MAX(id) FROM table GROUP BY domain_id, search_engine_id Regards, Pablo Viojo pvi...@gmail.com http://pviojo.net ¿Que necesitas? http://needish.com On Mon, Nov 2, 2009 at 8:29 PM, Chad Casselman wrote: > > I have a tabl

Re: Routes not working in site copy

2009-10-27 Thread Pablo Viojo
Try deleting the files in tmp/cache/* folders. Regards, Pablo Viojo pvi...@gmail.com http://pviojo.net ¿Que necesitas? http://needish.com On Tue, Oct 27, 2009 at 12:56 PM, toby1kenobi wrote: > > Hi everyone, > > I'm sure this is something simple, and glaringly obvious

Re: find __() function parameters in /app and update *.po - automated

2009-10-14 Thread Pablo Viojo
We are using slugs for translations in our site, and our site is quite big... :) Pablo Viojo pvi...@gmail.com http://needish.com On Wed, Oct 14, 2009 at 1:59 PM, Larry E. Masters aka PhpNut < php...@gmail.com> wrote: > Miles, > > It is not a suggestion it is the correct way

Re: CakePHP + Sequences = weird problem...

2009-10-12 Thread Pablo Viojo
It should be related to the cakephp cache queries. Try setting $this->Planification->cacheQueries = false; before calling ->query(...) Regards, Pablo Viojo pvi...@gmail.com http://pviojo.net ¿Que necesitas? http://needish.com On Mon, Oct 12, 2009 at 9:44 AM, Xanax wrote: > &g

Re: unexpected T_VARIABLE

2009-10-03 Thread Pablo Viojo
¬¬ Regards, Pablo Viojo pvi...@gmail.com http://pviojo.net ¿Que necesitas? http://needish.com On Sat, Oct 3, 2009 at 4:59 PM, wrote: > First line of index() is missing a semicolon > Schreck > > -Original Message- > From: Jeff > Date: Sat, 3 Oct 2009 13:01:48 >

Re: Highlight Author Comment

2009-09-17 Thread Pablo Viojo
Something like this: Change your variable names appropiately. Regards, Pablo Viojo pvi...@gmail.com http://pviojo.net ¿Que necesitas? http://needish.com On Thu, Sep 17, 2009 at 3:55 PM, Simon wrote: > > un exemple will be appreciated > > On Sep 17, 11:14 am, N

Re: Is Cake capable of building up a small or medium social network?

2009-08-28 Thread Pablo Viojo
Based on my own experience using medium-sized tables the "or solution" is slower than "replicating data solution" Just my 2 cents. Regards, Pablo Viojo pvi...@gmail.com http://pviojo.net ¿Que necesitas? http://needish.com On Fri, Aug 28, 2009 at 2:35 AM, Miles J wrote:

Re: Is Cake capable of building up a small or medium social network?

2009-08-27 Thread Pablo Viojo
In the particular case of a friends table I recommend to insert two records for each relation. It's faster to read (remember 90% reads, 10% inserts) :) , Pablo Viojo pvi...@gmail.com http://pviojo.net ¿Que necesitas? http://needish.com On Thu, Aug 27, 2009 at 12:33 PM, Miles J

Re: Is Cake capable of building up a small or medium social network?

2009-08-27 Thread Pablo Viojo
21 2 52 2 25 3 31 3 13 4 41 4 14 5 24 5 42 you can do user_id_1=1 (only one index) Regards Pablo Viojo pvi...@gmail.com http://pviojo.net

Re: Is Cake capable of building up a small or medium social network?

2009-08-27 Thread Pablo Viojo
Take a look at http://needish.com It's cakephp based :) Regards, Pablo Viojo pvi...@gmail.com http://pviojo.net ¿Que necesitas? http://needish.com On Wed, Aug 26, 2009 at 7:23 PM, DigitalDude wrote: > > Hey, > > I'm wondering if it would be possible to build up a s

Re: Cannot modify header information

2009-07-20 Thread Pablo Viojo
Now what? Try looking at /cake/basics.php:108 ... I found it belongs to function debug(), so maybe you're using debug(...) previously? Take a look at your code. Saludos, Pablo Viojo pvi...@gmail.com http://pviojo.net (#340 y crec

Re: Cannot modify header information

2009-07-20 Thread Pablo Viojo
Normally that error comes with something like: Warning (2): Cannot modify header information - headers already sent by (output started at file:line) Regards, Pablo Viojo pvi...@gmail.com http://pviojo.net (#340 y creciendo!) Ayudar

Re: view not echoing

2009-06-22 Thread Pablo Viojo
try it! debug($products); Saludos, Pablo Viojo pvi...@gmail.com http://pviojo.net (#260 y creciendo!) Ayudar nos hace felices! http://needish.com - http://helperman.org On Mon, Jun 22, 2009 at 4:53 AM, dflow wrote: > >

Re: view not echoing

2009-06-21 Thread Pablo Viojo
debug(...) is your friend! always! Saludos, Pablo Viojo pvi...@gmail.com http://pviojo.net (#260 y creciendo!) Ayudar nos hace felices! http://needish.com - http://helperman.org On Sun, Jun 21, 2009 at 6:23 PM, Miles J wrote

Re: view not echoing

2009-06-21 Thread Pablo Viojo
The problem isn't related to "echo". Your variable is name products in the controller $this->set('products',$this->Product->find('all')); So, in the view you should use $products. Try doing in your view. HTH, Pablo Viojo pvi...@g

Re: URL mapping of actions with camelCase names

2009-05-29 Thread Pablo Viojo
TestingController:by_name is no longer needed (I removed it to test this case) Saludos, Pablo Viojo pvi...@gmail.com http://pviojo.net (#260 y creciendo!) Ayudar nos hace felices! http://needish.com - http://helperman.org On Fri, M

Re: URL mapping of actions with camelCase names

2009-05-29 Thread Pablo Viojo
Can you post the URL that allow to access and the URL that throws an error? (becuse I get lost! :) ) Saludos, Pablo Viojo pvi...@gmail.com http://pviojo.net (#260 y creciendo!) Ayudar nos hace felices! http://needish.com - http

Re: New Install - Where is the Dispatch

2009-03-28 Thread Pablo Viojo
CTORY SEPARATOR'); or define('ROOT', dirname(dirname(dirname(__FILE__; Try deleting files on tmp/cache/persistent Saludos, Pablo Viojo pvi...@gmail.com http://pviojo.net (#260 y creciendo!) Ayudar nos hace felic

Re: Sessions disappearing -- load balancing problem?

2009-03-28 Thread Pablo Viojo
Are you using "sticky sessions" when balancing? (ask your system admin) Which session.save value are you using (php, database, cache)? (located on your core.php) Saludos, Pablo Viojo pvi...@gmail.com http://pviojo.net (#260 y

Re: limit access to a site?

2009-03-25 Thread Pablo Viojo
$ip = gethostbyname('www.example.com'); http://www.php.net/gethostbyname Saludos, Pablo Viojo pvi...@gmail.com http://pviojo.net (#260 y creciendo!) Ayudar nos hace felices! http://needish.com  - http://helperman.org O

Re: Model::afterFind being called on find('count')

2009-03-25 Thread Pablo Viojo
Yes, that's what I am doing (I'm doing it at the model.php (core) because I'm working only with stables releases for production) but I would like to know if someone else consider it a mistake so I'll post a ticket and a patch for it. Regards, Pablo Viojo pvi...@gmail.com htt

Re: Sharing CAKEPHP Session with external app on a different virtual host

2009-03-24 Thread Pablo Viojo
Memcache or DB are the best options! Saludos, Pablo Viojo pvi...@gmail.com http://pviojo.net (#260 y creciendo!) Ayudar nos hace felices! http://needish.com - http://helperman.org On Tue, Mar 24, 2009 at 6:02 PM, Krzysztof Chudzik

Model::afterFind being called on find('count')

2009-03-24 Thread Pablo Viojo
Can someone illuminate me about afterFind being called on find('count,..) I consider it's a mistake, because normally you would'nt do anything with it, or something completely different than an find all or find first. Thanks in advance! Regards, Pablo Viojo pvi...@gmail.com ht

Re: Line feed at the befining of my pages source ?!? Where does it come from? Is beaks my XML :(

2009-03-06 Thread Pablo Viojo
removing all closing ?> on your models, controllers, components and helpers may help (they are not needed) Saludos, Pablo Viojo pvi...@gmail.com http://pviojo.net (#220 y creciendo!) Ayudar nos hace felices! http://needish.com - h

Re: Calling a single field from a DB table

2008-10-18 Thread Pablo Viojo
Save the creator id when creating apps and compare it, when editing, with the session user, and user tokem or whatever that allows you to "authenticate" the user editing Sent from my iPhone On 18-10-2008, at 17:27, Cody Sortore <[EMAIL PROTECTED]> wrote: > > Thanks for the solution, I teste

Re: Creating a Settings / preferences Component

2008-10-18 Thread Pablo Viojo
Sent from my iPhone On 18-10-2008, at 17:07, Smelly_Eddie <[EMAIL PROTECTED]> wrote: > > I am having some trouble with the proper way to go about modeling > this. I would love suggestions. > > I have a simple database with an id, key and value fields. I made an > administrative model, contro

Re: Newbie questions about model relations

2008-10-18 Thread Pablo Viojo
You are wrong, you can name your id whatever you want as long as you define it using $primaryKey Sent from my iPhone On 18-10-2008, at 16:43, "Lamonte(Scheols/Demonic)" <[EMAIL PROTECTED]> wrote: > Yeah cake its strict on everything so you can't name your id > "design_id" stupid? Yes I kn

Re: Behaviors called for COUNT queries in RC3

2008-10-14 Thread Pablo Viojo
Model::afterFind is called now for a findCount, I've read the code for previous releases and it was called before. Is this a bug or a new feature?, should I change all my afterfind methods? Regards, Pablo Viojo [EMAIL PROTECTED] http://pviojo.net Are you Needish? ... http://needish.com

Re: IP to GEO

2008-10-11 Thread Pablo Viojo
I'm using this[1] on 1.2rc3 (and rc2) it looks similar Regards, Pablo Viojo [EMAIL PROTECTED] http://needish.com http://pviojo.net [1] http://bakery.cakephp.org/articles/view/geoip-component On Sat, Oct 11, 2008 at 12:22 PM, Louie Miranda <[EMAIL PROTECTED]> wrote

Re: run cakephp app within an iframe

2008-03-31 Thread Pablo Viojo
On Mon, Mar 31, 2008 at 12:34 PM, eniacx <[EMAIL PROTECTED]> wrote: > > Is there a way to do this without an absolute URL? > > Does anyone know of a way to obtain the URL version of WWW_ROOT? > > thanks in advanced > > Try [1]: "> -- Pablo Viojo [EMAIL P

Re: __call() in Controller? controller actions with underscores

2008-03-07 Thread Pablo Viojo
On Fri, Mar 7, 2008 at 10:55 AM, Pablo Viojo <[EMAIL PROTECTED]> wrote: > On Fri, Mar 7, 2008 at 5:44 AM, grassoalvaro <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > I was searching for solution but i didn't find anything. So, for > >

Re: __call() in Controller? controller actions with underscores

2008-03-07 Thread Pablo Viojo
Any idea? > Try this at routes.php: Router::connect('/dictionaries/:action/*', array('controller' => 'dictionaries')); And the defining any action you like in the controller. Regards, -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net --~--~-~--~~--

Re: How to develop an API

2008-03-05 Thread Pablo Viojo
My 2 cents, try keeping your models as fat as possible. This way your models can be used from your controllers or opened to third party (just creating an ApiController for example) reusing the logic. Regards, -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net On Wed, Mar 5, 2008 at 5:08 PM

Re: Is it possible to create a fileController for URL's like "mycms/files/ ..."?

2008-02-24 Thread Pablo Viojo
This happens because a webroot/files folder exists. Try deleting the folder. Regards, -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net On Sun, Feb 24, 2008 at 4:27 PM, smacks <[EMAIL PROTECTED]> wrote: > > Hi guys, > > I'm currently working on a content managem

Re: CakePHP v1.2 stable enough for production?

2008-02-23 Thread Pablo Viojo
I think this has been asked, and answered, too many times ;) [1]...Just use it! Regards, -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net [1] http://groups.google.com/group/cake-php/search?group=cake-php&q=1.2+production&qt_g=Search+this+group On Sat, Feb 23, 2008 at 5:42 PM, Gr

Re: SQL error when adding item using the scaffolding

2008-02-18 Thread Pablo Viojo
This IS what you should do: 1. Fill a ticket 2. submit a patch [1] Regards, -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net [1] https://trac.cakephp.org/ On Sun, Feb 17, 2008 at 5:19 PM, jim starboard <[EMAIL PROTECTED]> wrote: > > This IS a cake issue. The scaffolding cod

Re: 500 errors with Dreamhost?

2008-02-14 Thread Pablo Viojo
. (Using PHP 5.2.2) > > > I have my domain pointing to /home/yoursusername/yourdomain.com/app/ > webroot/ in the web panel. I have my domain pointing to /home/yoursusername/yourdomain.com/ Regards, -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net --~--~-~--~~---

Re: $uses doesn't work in Task "included" by another Task

2008-02-13 Thread Pablo Viojo
You should try using associations (hasMany, belongTo,...) Regards, -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net On Wed, Feb 13, 2008 at 6:44 PM, Viktor Nagy <[EMAIL PROTECTED]> wrote: > > Hi, > > I am working on an application to analyse my installed applications >

Re: Model data only appears when in debug mode

2008-02-08 Thread Pablo Viojo
Try deleting the /tmp folder contents -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net On Fri, Feb 8, 2008 at 11:50 AM, glastoveteran <[EMAIL PROTECTED]> wrote: > > Hi all, > > I'm sure I'm doing something obviously wrong but I have several > instances where

Re: Adding a java applet to cake.

2008-01-31 Thread Pablo Viojo
t; pages and it will not load. > > Yes I do agree about running an applet for this functionality is not > the best thing to do but I have yet to find an ajax or javascript > application that will mimic anything close to: > http://java.arcadevillage.com/applets/timepica.htm. > > On

Re: Adding a java applet to cake.

2008-01-31 Thread Pablo Viojo
Anyway, using java applet for such a functionality:S -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net On Thu, Jan 31, 2008 at 6:47 PM, Pablo Viojo <[EMAIL PROTECTED]> wrote: > > > On Thu, Jan 31, 2008 at 3:30 PM, Brian <[EMAIL PROTECTED]> wrote: > > > >

Re: Adding a java applet to cake.

2008-01-31 Thread Pablo Viojo
: What does "run the applet from webroot" and "run it from a model view" means? Also, you have a typo. Check the line webroot . " ATimePicker.jar"; ?> it should be webroot . " ATimePicker.jar"; ?> Regards -- Pablo Viojo [EMAIL PROTECTED] http://pvioj

Re: Cake is not Rapid !!?

2008-01-30 Thread Pablo Viojo
It's relative..Can you define "rapid"? :P -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net On Jan 30, 2008 10:41 AM, Renan Gonçalves <[EMAIL PROTECTED]> wrote: > The question is: Is Cake rapid ? Or is not rapid ? > --~--~-~--~~~---

Re: An Idea For Ease Of Developing Views

2008-01-24 Thread Pablo Viojo
I don't understand the following...can you explain it a little? > I can't stand using php in my view code (even though I am a php > programmer !), -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net --~--~-~--~~~---~--~~ You received this mes

Re: 15 minute blog tutorial

2008-01-24 Thread Pablo Viojo
No, that's what layouts are for -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net On Jan 24, 2008 3:45 AM, justradar <[EMAIL PROTECTED]> wrote: > > are you supposed to use routes to define which page uses which > template?? > > > > > There are all man

Re: how display result in view with $this->$Modelname->Query("")

2008-01-11 Thread Pablo Viojo
Try Model::findCount[1] $this->Customer->findCount(); -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net [1] http://api.cakephp.org/1.2/class_model.html#0978aba07f5d196079d7518a99bcfa86 On Jan 11, 2008 10:36 AM, Chris Hartjes <[EMAIL PROTECTED]> wrote: > > On Jan 10,

Re: How can one access session data from a model function?

2008-01-09 Thread Pablo Viojo
You shuldn't try to access session information from within a model, instead try passing it from the controller as a parameter. Example: Model User: function getUserInfo($user_id){ ... } Controller: User->getUserInfo($this->Session->read("logged_user_id")); Regards,

Re: scripts for layout in cake 1.2

2008-01-07 Thread Pablo Viojo
Just for the record. If your creating a website with javascript to add functionlity the approach of loading the javascript at the bottom is correct. But if your site striongly depends on javascript (the case of a webapp) the best is to load javascript as soon as you can. Regards, -- Pablo Viojo

Re: Yahoo UI

2008-01-04 Thread Pablo Viojo
I've used once -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net On Jan 4, 2008 11:37 AM, Ghost <[EMAIL PROTECTED]> wrote: > > Does anybody use Cakephp+Yahoo UI in your projects? > > > > --~--~-~--~~~---~--~~ You received

Re: Problem wit redirect

2008-01-03 Thread Pablo Viojo
Anyway, that's something non trivial, you can do it using headers, status-code, content comparison (search for some string fore example) but you may consider some cross-browser issues. -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net On Jan 3, 2008 11:17 AM, Pablo Viojo <[EMAIL P

Re: Problem wit redirect

2008-01-03 Thread Pablo Viojo
expiration using the ajax helper, but you should have some code on the client-side (javascript) to check if session is alive. If not just do a redirect to the login url. Regards, -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net --~--~-~--~~~---~--~~ You received

Re: Fairly simple beforeSave() question

2007-12-31 Thread Pablo Viojo
code. Regards, -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net [1] http://api.cakephp.org/controller_8php-source.html#l00859 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to t

Re: include everywhere | app_controller.php

2007-12-29 Thread Pablo Viojo
Try searching this group[1]. I did it for you and found [2] [3] among others. Hope that helps. -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net [1] http://groups.google.com/group/cake-php/search?hl=en&group=cake-php&q=app_controller+model [2] http://groups.google.com/group/

Re: share views between actions?

2007-12-27 Thread Pablo Viojo
Try: $this->autoRender=false; $this->render('foo'); in your controller action Also, see the render definition[1] Regards, -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net [1] http://api.cakephp.org/1.2/class_controller.html#90046e6b62c91452a987c9573372c2ac On Dec

Re: Causes of Model::Save() Fail

2007-12-27 Thread Pablo Viojo
Try setting debug to 2 and take a look at the generated queries. Regards, -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net On Dec 26, 2007 5:56 AM, ProFire <[EMAIL PROTECTED]> wrote: > > Hello! > > I have searched through the google group looking for an answer for why &

Re: Best Practice for multiple belongsTo associations (Cake 1.1)

2007-12-26 Thread Pablo Viojo
Chris, Take a look at these[1][2]. Maybe it helps (maybe not) Regards, -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net [1] http://digitalspaghetti.tooum.net/switchboard/blog/2487:Discovering_Single_Table_Inheritance [2] http://www.ifisgeek.com/tutorials

Re: Is cake generating inefficient SQL? (uses IN clause)

2007-12-14 Thread Pablo Viojo
Beside indexs, full tables scans, etc. Cake is a tool that allows developers to simplify some complicated things. Obviously this simplification means an aditional overhead sometimes, and if you want to avoid it use custom queries. Regards, -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net On

Re: Problem adding new record with Id

2007-12-03 Thread Pablo Viojo
Exactly, this is related with the primary key for your model. See http://groups.google.com/group/CakePHP-es/t/9503e9e1222d1a08?hl=es (in spanish) as his original request. ;) Regards, -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net On Dec 3, 2007 8:25 PM, kristofer <[EMAIL PROTEC

Re: javascript declarations

2007-11-20 Thread Pablo Viojo
Please provide more details...javascript error, if any, generated html code, etc -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net On Nov 20, 2007 4:07 PM, ldb <[EMAIL PROTECTED]> wrote: > > G'day > > This has got to be a tweak I missed, can someone please tell me

Re: recursive = 3

2007-11-20 Thread Pablo Viojo
Details please! -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net On Nov 20, 2007 4:35 PM, rtconner <[EMAIL PROTECTED]> wrote: > > No one else has ever had this problem? Odd. Three people in my office > have come across this same thing. None of us could find a cake wa

Re: HTTP 411 Error on XMLHttpRequest

2007-11-05 Thread Pablo Viojo
Are you using an ajax library? which? Regards, -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net On 11/5/07, carstep <[EMAIL PROTECTED]> wrote: > > > FYI: I go further and realized that this happens only in FF 2.0.0.9, > but in IE6 it works perfectly! > > Bye A

Re: Strange "caching" in cakephp

2007-11-04 Thread Pablo Viojo
I think is a behavior related with your browser cache. Try deleting it before going back to the list -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net On 11/4/07, Jan Koprowski <[EMAIL PROTECTED]> wrote: > > > Hi ! > > I have strange "caching" in cake. I ha

Re: Blank page when debug = 0

2007-10-21 Thread Pablo Viojo
Set debug=1 and check if you have errors on your page -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net On 10/21/07, Charlie van de Kerkhof <[EMAIL PROTECTED]> wrote: > > > Hi, > I still have this problem. Searched this forum about this subject and > did all suggestions:

Re: Best place to put "odds & ends" functions?

2007-09-06 Thread Pablo Viojo
By bootstrap.php I mean app/config/bootstrap.php Pablo On 9/6/07, Pablo Viojo <[EMAIL PROTECTED]> wrote: > app_controller if related to controller > app_model if related to model > > bootstrap.php if general > > -- > Pablo Viojo > [EMAIL PROTECTED] > http://p

Re: Best place to put "odds & ends" functions?

2007-09-06 Thread Pablo Viojo
app_controller if related to controller app_model if related to model bootstrap.php if general -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net On 9/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Where's the best place to put "odds & ends" functions

Re: How can I send parameters via get to index with cool url

2007-09-06 Thread Pablo Viojo
Also, try Named Parameters (native in 1.2, for 1.1 [1]) [1] http://bakery.cakephp.org/articles/view/passing-named-parameters -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net On 9/6/07, majna <[EMAIL PROTECTED]> wrote: > > You can map all route site/* to site/index/ > exmpl f

Re: Regarding installing cakephp

2007-08-30 Thread Pablo Viojo
our pc remotely, and then I can help you Regards, -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net On 8/30/07, sukumar <[EMAIL PROTECTED]> wrote: > > I have uncommented the line u told me to do and I have done > Allowoverride All everywhere I saw that. I don't know what cou

Re: Regarding installing cakephp

2007-08-30 Thread Pablo Viojo
Look for a line containing LoadModule rewrite_module modules/mod_rewrite.so and uncomment it (if commented with #) -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net On 8/30/07, Pablo Viojo <[EMAIL PROTECTED]> wrote: > Try checking your httpd.conf (I suppose it is > xampp

Re: Regarding installing cakephp

2007-08-30 Thread Pablo Viojo
Try checking your httpd.conf (I suppose it is xampp/apache/conf/httpd.conf) and see if mod_rewrite is enabled (when i've installed mine it was disabled by default). -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net On 8/30/07, grandpa <[EMAIL PROTECTED]> wrote: > > I

Re: I hate the bakery

2007-08-28 Thread Pablo Viojo
It's way too much to have a ticket, so imagine a ticket + patch ;) -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net On 8/28/07, Mariano Iglesias <[EMAIL PROTECTED]> wrote: > > Who's responsable? Err :) > > Also it wouldn't hurt that just EVERY NO

Re: help on this function

2007-08-28 Thread Pablo Viojo
onfuse. From your statement I think the condition should be if (!(!isset($this->data['Membership']['id'])){ // Do something } or better: if (isset($this->data['Membership']['id']){ // Do something } Don't know...check you

Re: help on this function

2007-08-28 Thread Pablo Viojo
#x27;role_id']; > $module = $this->data['Membership']['module_id']; > $user = $this->data['Membership']['user_id']; > $conditions = array("Membership.role_id"=>"$role", >

Re: .htaccess's "/" problem

2007-08-27 Thread Pablo Viojo
> > > > > > On Aug 22, 10:01 am, CakeMan < [EMAIL PROTECTED]> wrote: > > > > > > > > > > Hello Friends, > > > > > > > > > > I am facing an problem. I have installed cakephp on my server. > The > > > &

  1   2   >