Re: Is CakePHP more suitable for web services or Zend Framework?

2012-08-01 Thread Zaky Katalan-Ezra
For a RESTful API I just created a template that generate RESTful
controller.
Please check https://launchpad.net/cakephpapitemplate
It would be nice to get help with this project.

On Wed, Aug 1, 2012 at 10:34 AM, Lightee  wrote:

> Thanks for the recommendation. Although CakePHP may be an overkill, it is
> flexible enough to handle future new features requested by customer.
> slimframework may be useful for personal projects but I will stick to a
> more flexible framework like CakePHP or Zend when making recommendation to
> my boss.
>
>
> On Wednesday, August 1, 2012 1:44:57 PM UTC+8, Dr. Tarique Sani wrote:
>>
>> If you are sure that your project is always going to be web service
>> only I would suggest start with a framework dedicated for such task.
>> eg: Slim http://www.slimframework.com/
>>
>> Both CakePHP and ZendFW will be an overkill
>>
>> HTH
>> Tarique
>>
>> On Wed, Aug 1, 2012 at 6:55 AM, Lightee  wrote:
>> > Dear CakePHP gurus,
>> >
>> > I have no intention to start an emotional thread about which framework
>> is
>> > better. Asking this question on this forum is also rather stupid
>> because
>> > members here are likely to be biased. Nevertheless, I hope to get
>> objective
>> > replies.
>> >
>> > I would like to build a website that focuses on web services -
>> particularly
>> > CRUD, search and query functions. From what I read on the net, Zend
>> > Framework supporters say that Zend has much more components than
>> CakePHP to
>> > support web services. On the other hand, my understanding of CakePHP is
>> that
>> > Zend Framework components can be imported into CakePHP vendors folder.
>> If
>> > that is the case, wouldn't it be a no-brainer to use CakePHP? In that
>> > regard, I have a few questions ...
>> > - How easy is it to import Zend components into CakePHP? Do we need to
>> > modify the Zend components such that they follow certain naming
>> conventions?
>> > - Can most Zend components or only selected ones be imported? How about
>> the
>> > ones that deal with web services?
>> >
>> > Thank you for your help.
>> >
>> >
>> > --
>> > 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+unsubscribe@**googlegroups.comFor
>> >  more options, visit this group at
>> > http://groups.google.com/**group/cake-php<http://groups.google.com/group/cake-php>
>>
>>
>>
>> --
>> ==**==**=
>> PHP for E-Biz: http://sanisoft.com
>> ==**==**=
>>
>  --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
Regards,
Zaky Katalan-Ezra
QA Administrator
www.IGeneriX.com
Sites.IGeneriX.com
054-7762312

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakePHP REST service does not recognize POST

2012-07-30 Thread Zaky Katalan-Ezra
pr($this->RequestHandler)
just above
if( $this->RequestHandler->isPost() ) {

What is the output?

By the way, I use this to check post
$this->request->is('post')

On Thu, Jul 26, 2012 at 11:29 PM, frederikjacques wrote:

> $this->RequestHandler




-- 
Regards,
Zaky Katalan-Ezra
QA Administrator
www.IGeneriX.com
Sites.IGeneriX.com
054-7762312

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: set::sort question

2012-07-30 Thread Zaky Katalan-Ezra
http://php.net/manual/en/function.usort.php

function cmp($a, $b)
{
if ($a['key1'] == $b['key1']) {
if ($a['key2'] == $b['key2']) {
   return 0;
}else{
   return ($a['key2'] < $b['key2']) ? -1 : 1;
}
}else{
return ($a['key1'] < $b['key1']) ? -1 : 1;
}
}

Something like that

On Mon, Jul 30, 2012 at 10:37 AM, heohni <
heidi.anselstet...@consultingteam.de> wrote:

> a) in this case, the DB can't help as the array contains data I put
> manually in
> b) It's not that urgent and I was hoping I was just overseeing
> something... If you just telling me that I cannot use 2 sort rules, I will
> arrange my array in another way to get to my goal.
>
> Thanks :-)
>
> Am Montag, 30. Juli 2012 09:34:39 UTC+2 schrieb euromark:
>
>> a) why not providing the data correctly sorted from the db level? let
>> mysql do the work
>>
>> b) if that is not possible for some reason, why not manually iterating
>> over the array? probably still faster than the Set/Hash class anyway.
>> yeah, might be a few lines more, but at least you got it in a few minutes
>> instead of waiting for some guru to write it for you.
>>
>>
>> Am Montag, 30. Juli 2012 09:05:06 UTC+2 schrieb heohni:
>>>
>>> does anyone has an idea?
>>>
>>> Am Freitag, 27. Juli 2012 12:36:15 UTC+2 schrieb heohni:
>>>>
>>>> Hi,
>>>>
>>>> I have this array:
>>>> Array
>>>> (
>>>> [240] => Array
>>>> (
>>>> [Member] => Array
>>>> (
>>>> [id] => 112
>>>> )
>>>>
>>>> [Payment] => Array
>>>> (
>>>> [date] => 0712
>>>>
>>>>
>>>> )
>>>> )
>>>>
>>>> I want to use the set::sort function to sort first for Member.id ASC
>>>> and then for Payment.ASC
>>>>
>>>> Can please someone explain me how I need to write the set::sort syntax?
>>>> I never used it before and quite unsure how it has to be done.
>>>>
>>>> Thanks!!
>>>>
>>>>
>>>>  --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
Regards,
Zaky Katalan-Ezra
QA Administrator
www.IGeneriX.com
Sites.IGeneriX.com
054-7762312

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Problem masking errors in cakePhP

2011-11-22 Thread Zaky Katalan-Ezra
Create app_error file;
controller->log($this,'err');
$this->controller->beforeFilter();
parent::_outputMessage($template);
}
}
?>


Taken from here:
http://www.bradezone.com/2009/05/21/cakephp-beforefilter-and-the-error-error/

On Tue, Nov 22, 2011 at 8:23 AM, rach  wrote:

> Hi,
>
> We are using PHP 5.3.5, and cakePHP 1.3.7. We are not able to mask the
> error messages we are getting - 'Strict Standards", "Fatal errors".
> The problem we are running into is -
>
> We tried this solution.
>
> Configure::write('debug', 0);
> and
> Configure::write('log', false);
> in core.php but it did not work.
>
> Currently we are commenting  echo $_this->_output($data); in
> debugger.php to stop notice/warnings but we are unable to stop strict-
> standard/ Fatal errors
>
> Right now, we cannot move to a diff. version of CakePHP as we have an
> upcoming imp. milestone and so we want to avoid any regressions that
> might happen as a result of moving to a diff. version. We may try that
> later on.
>
>
> We are looking to -
> 1.) either mask the errors we are getting?
> 2.) any other way to handle these errors so that they do not get
> displayed to a user?
>
>
> thanks!
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: cakephp 1.3 with javascript

2011-11-22 Thread Zaky Katalan-Ezra
Where in the code you get the returned data and try to put it in the page?

On Tue, Nov 22, 2011 at 1:31 PM, jason for  wrote:

> Hi folks,
> I'm almost done with my 1st cakephp site and it's looking good, but
> could look better with a bit of javascript dynamically changing my
> view.
> Here's my code;
>
> $(document).ready(function()
> {
>$("#event_id").change(function()
>{
>$.post(
>"manualpayment",
>{value: "12" });
>});
> });
>
> class AccountsController extends AppController {
>
>var $name = 'Accounts';
>var $helpers = array('Js' => array('prototype', 'scriptaculous.js?
> load=effects'), 'Ajax', 'Form', 'Html');
>public $components = array('RequestHandler');
>
> 
>
>function manualpayment()
>{
>
> 
>
>if ($this->RequestHandler->isAjax())
>{
>$players = $this->Account->Player->find('list');
>$this->set(compact('players', 'events'));
>
>echo $this->render('/accounts/manualpayment',
> 'ajax');
>   CakeLog::write('debug', "isAjax is true");
>}
>else
>{
>
>
> I'm trying to handle the ajax request in function manualpayment(). The
> request does reach here as I can see the 'isAjax is true' in the debug
> log. However, I don't get the a new view rendered, in fact, the call
> to render appears to have no effect. I've stored the output from the
> render call in the debug log and it contains a bunch of HTML.
>
> I've done plenty of digging into other articles about AJAX and cakephp
> and the majority of the problems appear to be getting duplicate HTML
> into the view, my problem is the opposite, nothing appears to change!
>
> EDIT: Just checked firebug and it looks like there is a duplicate set
> of view data returning to the browser, but it's still not being drawn
> on the browser (either firefox or IE)
>
> Hopefully someone out there can help. I'm pulling my hair out!
>
> Thanks,
>
> Jason.
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: publish a project. what to do with database?

2011-11-21 Thread Zaky Katalan-Ezra
Install  mysql on the server.
On your local machine run the command:
mysqldump -u root -p password yourdbnane > outfile.sql.
upload outfile.sql to the server
on the server run the command:
mysql -u root -p password yourdbname < outfile.sql

Clean you db from development data.


On Mon, Nov 21, 2011 at 4:45 AM, Nuno Yu  wrote:

> Hi! My friends.
> I'm a newbie to cakephp and have accomplished a project on my
> localhost. Could u tell me how to publish my project on a web server?
> I read articles saying just need upload the folders of my local
> webroot directory to webroot folder.
> But how to do with the mysql databases. Should I make use of the db of
> the web server or install a phpmyadmin on it?
> Thanks,
> Nuno
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Help: how to use cakephp for subdomains

2011-11-06 Thread Zaky Katalan-Ezra
http://procsharp.blogspot.com/2010/12/configure-apache-to-host-domain-and.html

On Sun, Nov 6, 2011 at 10:54 AM, Hamid Mamdoohi wrote:

> I create subdomain for my site.
> I use cakephp for that but when call $html->css('style') method to add tag
> and run it. cake can't load css file and send error of missing controller.
> please help me.
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Plupload and Media Plugin

2011-11-06 Thread Zaky Katalan-Ezra
"it is not ideal to handle big uploads"
Why is that?
What is your problem?
I am using the plugin and have no problems with large files.
Did you set php properly?

http://www.radinks.com/upload/config.php

On Sun, Nov 6, 2011 at 7:43 PM, Mo  wrote:

> Hey
>
> I need the ability to upload large (up to 100MB) files. Up to now I
> have the David Persson's Media Plugin integrated however it is not
> ideal to handle big uploads. Is there a way to integrate Pulpload (or
> something similar) to work with the Media plugin and Cakephp? Has
> anyone of you done this already?
>
> Regards
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
Regards,
Zaky Katalan-Ezra
QA Administrator
www.IGeneriX.com
Sites.IGeneriX.com
054-7762312

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Cake2.0 not recognizing my PHPUnit installation

2011-10-24 Thread Zaky Katalan-Ezra
Download all repositories and update include_path as said in the section
"Using PHPUnit From a Git Checkout" in
https://github.com/sebastianbergmann/phpunit

On Tue, Oct 25, 2011 at 3:21 AM, andrewperk  wrote:

> Ok, I downloaded and put PHPUnit into my vendors folder. Now when I
> run test.php I get an error about not being able to load a file from
> PHPUnit's Autoload.php file
>
> require_once(PHP/CodeCoverage/Filter.php) [function.require-once]:
> failed to open stream: No such file or directory [ROOT/vendors/PHPUnit/
> Autoload.php, line 46]
>
> I tried updating pear channels and clearing pear cache, neither of
> those fixed this problem
>
> Is this Filter.php file part of Pear? Maybe PHPUnit isn't able to find
> it because my pear isn't working properly? When I run 'pear' in the
> terminal it appears to be working just fine.
>
> Thanks for any help.
>
> On Oct 24, 2:35 pm, euromark  wrote:
> > I dont install it at all and just drop the necessary files in /vendors
> > works like a charm :)
> >
> > On 24 Okt., 22:23, andrewperk  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Hello,
> >
> > > I have PHPUnit 3.5.15 installed on Linux, PHP 5.3.5, it was installed
> > > using the pear installer per the directions in the cake 2.0 book.
> >
> > > When I browse to localhost/myapp/test.php, cake tells me PHPUnit is
> > > not installed. It tells me to run some commands to install it. So I
> > > tried running those commands and each time I do, it says they are
> > > already installed.
> >
> > > Does anyone know how to get cake to recognize phpunit?  Thanks.
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Am i breaking MVC?

2011-10-19 Thread Zaky Katalan-Ezra
Why cake or php involved with this operation?

On Wed, Oct 19, 2011 at 4:52 PM, Ernesto  wrote:

> Hi all.
>
> i have a simple app wich uses 2 different DBs.
> The second DB is used just to import data on a daily basis, no writes.
>
> i have 2 options:
>
> 1 - switch DB on-the-fly in my Order::import function
>
> function import() {
> $this->useDbConfig = "external_db";
> $this->query("SELECT * FROM blah");
> $this->useDbConfig = "default";
> $this->saveAll(/* still to code */);
> }
>
> 2 - add a new Model called "Import" with a different useDbConfig.
>
> wich one is best in your opinion? i don't want to break MVC.
>
>  --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Help with multilevel inheritance

2011-10-11 Thread Zaky Katalan-Ezra
Supply tables structure.
Environments etc.

On Tue, Oct 11, 2011 at 11:19 AM, Karan  wrote:

> Hello Guys,
> I am a total beginner with cakephp.
> I have managed to establish a proper functioning CRUD app with oracle
> at the backend.
>
> I have the current structure in place,
> Environments has many tables
> tables has many columns
>
> Tables belonging to different Environments can have the same names.
> When I try to to add a new column for a table, I cannot distinguish
> between tables with the same names and different environments. (The
> drop down lists all tables)
>
> What I am hoping to establish is an add page for columns in which ,
> there will be a drop down to select the environment first and then
> tables belonging to THAT environment will be listed in the second drop
> down box.
>
> I tried environments has many tables, environments has many columns,
> tables has manu columns, but it didnt help.
> I know callbacks can be used, can anyone nudge me in the right
> direction as I am newbie.
>
> Thanks,
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: How do you track your issues / bugs ?

2011-10-11 Thread Zaky Katalan-Ezra
I am using Unfuddle  with great success.
I also like Trac 

On Tue, Oct 11, 2011 at 11:52 AM, euromark wrote:

> exactly, jeremy :)
> same with me
>
> On 11 Okt., 07:20, Jeremy Burns | Class Outfit
>  wrote:
> > I've been using Mantis for about three years. I love it, my clients love
> it, it's free, I can brand it and my work gets done much faster.
> >
> > Jeremy Burns
> > Class Outfit
> >
> > http://www.classoutfit.com
> >
> > On 10 Oct 2011, at 22:46, euromark wrote:
> >
> >
> >
> >
> >
> >
> >
> > > i am keen to check it out once its stable
> >
> > > yes - email and docs are not suitable for issue tracking, of course.
> >
> > > but i can tell you - i wouldnt create my own issue tracker if not
> > > absolute necessary
> > > there are already enough "bugs" in your current software you are
> > > working on.
> > > why spending all your time fixing those in your issue tracker, too?
> > > I like to use out of the box solution for our teams.
> > > like "trac" or "mantisbt"
> > > those are well designed, do their job and provide you with a
> > > standonline solution
> > > that allows you to actually work fulltime the right project
> > > just my 5 cents :)
> >
> > > mark
> >
> > > On 10 Okt., 16:26, Ilay Avni  wrote:
> > >> I tried using issue tracking software in the past, but a lot of those
> > >> were too complicated and heavy. Using emails or Google docs is a big
> > >> NO as well. Can't keep track with those.
> >
> > >> So, I decided to create my own issue tracking software - something
> > >> light, idiot proof, and intuitive where you can just get in and get
> > >> out.
> >
> > >> I really want to try it out with some people and see what they think.
> > >> I'm releasing it soon and I want to have a good number of people to
> > >> give the software to for free at launch so I can get feedback and see
> > >> how it works with you and your team or clients.
> >
> > >> Check outhttp://www.Botoapp.comandsign up to receive the release.
> > >> Thanks ahead of time for your feedback.
> >
> > > --
> > > Our newest site for the community: CakePHP Video Tutorialshttp://
> tv.cakephp.org
> > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> others with their CakePHP related questions.
> >
> > > To unsubscribe from this group, send email to
> > > cake-php+unsubscr...@googlegroups.com For more options, visit this
> group athttp://groups.google.com/group/cake-php
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Ajax Link - How to exchange/toogle a link?

2011-10-09 Thread Zaky Katalan-Ezra
#my_profile is the link id.

function follow(add) {
var data =  "data[User][id]="+$("#foloweeId").val();
var actionurl = "/users/users/setFollow";
if(add == 0){
var actionurl = "/users/users/unsetFollow";
}

$.ajax({
type: "post",// Request method: post, get
url: actionurl,// URL to request
data: data,// Form variables
dataType: "json",// Expected response type
success: function(response, status) {
// Response was a success
if (response.success == true){
if(actionurl == "/users/users/setFollow") {
$("#my_profile").html('Stop Following Artist');
}else{
$("#my_profile").html('Follow Artist');
}
$("#flashMessage").remove();
$("#content").prepend(''+response.data+'');
}

},
error: function(response, status) {
$("#content").html('Operation faild due to an error').slideDown();
}
});


return false;
}

On Fri, Oct 7, 2011 at 7:52 PM, WebbedIT  wrote:

> AJAX is Javascript and jquery is to Javascript what CakePHP is to PHP,
> i.e. your framework, so why would you want to achieve this without
> using jquery?
>
> Paul
>
> On Oct 4, 10:06 am, heohni 
> wrote:
> > Hi,
> >
> > yes I thought about this poss. But I thought I could find a solution
> > based on cake and not using jquery for it.
> > But thanks for sharing!!
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: hasAndBelongsToMany does not work

2011-10-09 Thread Zaky Katalan-Ezra
Provide the models code

On Fri, Oct 7, 2011 at 11:26 PM, khalili merouane <
merouane.khal...@gmail.com> wrote:

> Hello,
>
> I have two tables categories and products when I try to view a
> category, I just have the information in the category without
> products.
>
> When I check the applications running I see that selects the products
> but does not display
>
> I have the join table categories_products
> and that the table queries
>
>
> (default) 6 queries took 14 ms
> Nr  Query   Error   AffectedNum. rows   Took (ms)
> 1   SHOW FULL COLUMNS FROM `products`19 19  6
> 2   SELECT CHARACTER_SET_NAME FROM INFORMATION_SCHEMA.COLLATIONS WHERE
> COLLATION_NAME= 'utf8_general_ci';   1  1   1
> 3   SHOW FULL COLUMNS FROM `categories`  9  9   3
> 4   SHOW FULL COLUMNS FROM `categories_products` 5  5   2
> 5   SELECT `Product`.`id`, `Product`.`name`, `Product`.`slug`,
> `Product`.`small_price`, `Product`.`medium_price`,
> `Product`.`large_price`, `Product`.`discount_percentage`,
> `Product`.`small_image_url`, `Product`.`large_image_url`,
> `Product`.`description`, `Product`.`extended_description`,
> `Product`.`additional_description`, `Product`.`active_for_home_page`,
> `Product`.`position_home_page`, `Product`.`active_small_price`,
> `Product`.`active_medium_price`, `Product`.`active_large_price`,
> `Product`.`active`, `Product`.`gift_id` FROM `products` AS `Product`
> WHERE `Product`.`id` = 20 LIMIT 11  1   1
> 6   SELECT `Category`.`id`, `Category`.`name`, `Category`.`slug`,
> `Category`.`description`, `Category`.`description_is_image`,
> `Category`.`image_url`, `Category`.`type`, `Category`.`popularity`,
> `Category`.`active`, `AppModel`.`id`, `AppModel`.`category_id`,
> `AppModel`.`product_id`, `AppModel`.`position`,
> `AppModel`.`popularity` FROM `categories` AS `Category` JOIN
> `categories_products` AS `AppModel` ON (`AppModel`.`product_id` = 20
> AND `AppModel`.`category_id` = `Category`.`id`)  1  1   1
>
> I test the last mysql query, it m'affiche the necessary information.
> But on the controller, it just gives me information on the category.
>
> I even do $ this-> Category-> recursive = 2;
>
>
>
>
> Thank you in advance
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Best practice for pending/approved flag for comments in a blog

2011-10-06 Thread Zaky Katalan-Ezra
You can review CakeDC comments plugin
https://github.com/CakeDC/comments

On Wed, Oct 5, 2011 at 11:02 AM, Boyan  wrote:

> Hello,
>
> I am trying to develop a blog- like application with Cakephp and have
> a rather general question.
> The comments for each post should be first reviewed by the author of
> the post, before becoming visible (Comment belongsTo Article, Comment
> belongsTo User, Post belongsTo User)
>
> So my question is- what would be the best way to go about it? Would a
> boolean flag in the sql table for the comments suffice? And if so- is
> it secure enough? Or should I rather use ACL? Or maybe a completely
> different approach?
>
> Thank you,
>
> Boyan
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Html helper - stop adding prefix unless explicitly specified

2011-10-05 Thread Zaky Katalan-Ezra
I have 3 roles in my app.
To Avoid adding the prefix arrays to each url, I am using this helper
function.
View code to create musician prefix url:
echo $this->Html->link('Dashboard',
$this->RoleLink->linkRole(array('controller'=>'users','action'=>'dashboard'),array('musician')));

Helper function:
function linkRole($default=array(),$whitelist=array()) {
return array_merge($default,
array('prefix'=>array('admin','label','musician'),'admin'=>
in_array('admin', $whitelist),'label'=>in_array('label',
$whitelist),'musician'=>in_array('musician', $whitelist)));
}

I hope it will help someone or even better if someone will give me a simpler
way to do it.

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: uploading large file fails

2011-10-02 Thread Zaky Katalan-Ezra
http://www.sitepoint.com/upload-large-files-in-php/

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: I can find() but can't save(), why?

2011-10-02 Thread Zaky Katalan-Ezra
Try to leave only one field to save then add fields one by one to get the
problematic field.
Do you use any behaviors with this model? if you do remove them and try to
save.


On Sun, Oct 2, 2011 at 6:14 PM, CrotchFrog  wrote:

> Just wondering if this issue has been resolved? I'm having the same
> problem with 2.0 RC2.
>
> On Sep 30, 4:46 am, "reynie...@gmail.com"  wrote:
> > Return "Entro" so it goes trough (!empty($this->data)) :-(
> >
> > Ing. Reynier Pérez Mira
> > Cel: +58 416.921.7406
> > Correo: reynie...@gmail.com / reynie...@hotmail.com
> >
> > On Fri, Sep 30, 2011 at 4:10 AM, Jeremy Burns | Class Outfit <
> >
> >
> >
> >
> >
> >
> >
> > jeremybu...@classoutfit.com> wrote:
> > > Try this:
> >
> > > if (!empty($this->data)) {
> > > $this->Modalidad->create();
> > >  if ($this->Modalidad->save($this->data)) {
> > > die("Entro");
> > > } else {
> > >  $this->Session->setFlash('Ocurrieron errores salvando los datos',
> > > 'default', array('class' => 'example_class'));
> > >  die(debug($this->Modalidad->validationErrors));
> > > }
> > > /* you don't need to use $this->render(), so get rid of it
> > > } else {
> > > $this->render();
> > >  */
> > > }
> >
> > > Jeremy Burns
> > > Class Outfit
> >
> > > Tel: +44 (0) 208 123 3822
> > > Mob: +44 (0) 7973 481949
> > > Skype: jeremy_burns
> > >http://www.classoutfit.com
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Trying to convince management that Open Source is a good thing

2011-09-28 Thread Zaky Katalan-Ezra
Money is not an issue in such organizations.
Most of the licenses are all ready bought.
The fast response for new tasks is the main issue.
You get this fast response because there is tons of libraries and code out
there that you can integrate into your solution.
Do it step by step:
First, suggest to implement cake on windows with MSSQL
For the support you have CakeDC.
Then try to change the database to mysql and finally maybe you convince some
one to try Linux
Although I  believe that In a 20K employees company you will find a Linux
machine somewhere.
The development is faster in open source also  because you  don't need as a
developer to ask for license for your tools.
When a new developer join the team it sometime take him more then a week to
get  vs2010  license.
And don't forget that  Wikipedia and Facebook  are based on PHP and Amazone
uses Linux servers.
But you also  take a chance that something will go wrong and you'll find
yourself trying to convince your employer to use  open source all over
again, only this time it will be your new employer.

On Wed, Sep 28, 2011 at 8:33 AM, Thomas Ploch wrote:

> Well, in a company with 20.000 employees I can imagine that the License
> fees for Windows Servers (there probably are a lot of them) and MSSQL
> databases (There probably are a lot of them too) are pretty high. So my
> main argument would be the financial savings in licensing costs (running
> costs) that are by far greater then the cost to actually change the
> IT-infrastructure (single investment) after X months (subject to
> calculation). Those managers do not understand things like "faster
> development processes" but they understand things like "We will save a
> big pile of cash".
>
> Kind regards
> Thomas
>
> Am Dienstag, den 27.09.2011, 07:52 -0700 schrieb Yves S. Garret:
> > Also, what was your experience in a similar situation?  How did you
> > handle it?  We're a big organization with at least 20,000 people.
> >
> > On Sep 27, 10:40 am, "Yves S. Garret" 
> > wrote:
> > > Sorry about this not being CakePHP specific, but rather something being
> > > tangentially related to CakePHP.  However, in my organization, there is
> a
> > > serious issue with convincing management that Open Source is a good
> idea.
> > >  As a result we are stuck with using Windows servers and _forced_ to
> use
> > > MSSQL.
> > >
> > > Don't get me wrong, I don't hate Microsoft (I run Mac, Windows and
> Linux at
> > > home) or want to start a flamewar of some sort.  However, I would like
> to
> > > know of some BUSINESS REASONS that I can use to sell to management that
> this
> > > is not only a good idea, but head and shoulders above our present way
> of
> > > going.
> > >
> > > My reason for doing this is because it's so much easier to get updates,
> > > fixes and improvements than with a close source approach.  Management
> is
> > > worried about support.  I don't really care, I can admin my own box
> just
> > > fine.  They want an approach that will cover their rear ends in case
> > > something bad happens (i.e. someone will come on-site and fix it for
> them).
> > >  Is there consultant group that provides support and other such
> services in
> > > the Rhode Island area that we could tap into?  I'd keep Windows around,
> but
> > > since we do most of our development on the web, it's kind of pointless
> to
> > > care too much what OS you're running.
> >
>
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: User id in afterPaypalNotification

2011-09-26 Thread Zaky Katalan-Ezra
Thank you
I am using the 'custom' attribute because  'Item_number' is shown in paylal
page like 'item_name' do.
'custom' or 'invoice' are hidden



On Mon, Sep 26, 2011 at 12:03 AM, nurvzy  wrote:

> You can't use sessions, Paypal is talking to your site, not the user.
> Once the user leaves for paypal they complete the purchase then paypal
> takes over and communicates to your application via a POST to the url
> you define.  So to get user data I'd suggest passing in what you want
> passed back.
>
> For example you can pass in a user_id in with the item_number key.
>
> $this->Paypal->button('Pay Now', array(
>  'amount' => '25', //your amount
>  'item_name' => 'Some Item',
>  'item_number' => 'ItemNumber|UserId'
> ));
>
> Then in your app_controller afterPaypalNotification callback just
> parse out the userId
>
>  list($itemNumber, $user_id) = explode("|", $ipn['item_number']);
>
> You get the idea.
>
> Hope that helps,
> Nick Baker
>
> On Sep 25, 3:36 pm, ZAky  wrote:
> > I get nothing from
> > $this->Session->read('Auth.User.id');
> > or
> > $this->Auth.user('id')
> > in afterPaypalNotification at app_controller.
> > Did I lost the session?
> > Can I send user identifier to PayPal and get it back with the IPN
> > notification?
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Element paths in a Plugin?

2011-09-23 Thread Zaky Katalan-Ezra
Did you try?

On Fri, Sep 23, 2011 at 2:20 PM, Xoubaman  wrote:

> If you call for an element in a plugin, if cake don't found it in the
> plugin's element folder, will look for it in the app element folder.
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: basic relation question

2011-09-23 Thread Zaky Katalan-Ezra
If the relationship are all there in all models you may change to
$this->track->recursive = 1;

if not try to build your models with "./cake bake all" in order to see the
suggested relationship.

On Fri, Sep 23, 2011 at 6:20 PM, Seth  wrote:

> I'm very new to CakePHP and MVC, so this is probably basic.  Just need
> a push in the right direction.
>
> I've got Event to many Courses to one Instructor
> If I'm on a Event view, it sees the Courses, but doesn't join to the
> instructor.
>
> So, do I add the instructor somehow to the Event model or do I edit
> the controller to join the instructor in?
> I thought the model would look further down.
>
> Thanks for the help
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Oop Question? - accessing protected model methods from behaviours.

2011-09-19 Thread Zaky Katalan-Ezra
It looks like a bad design.
Why declaring a function protected if you want to use it outside of
descendant classes.
Create a public function deleteDependent()  in the behavior and call
_deleteDependent()  from this function

On Mon, Sep 19, 2011 at 10:32 AM, #2Will  wrote:

> Hello
>
> I am trying to use Mariano's soft delete plugin with cakephp 2.0 but
> have come accross  little problem
>
> "Call to protected method Model::_deleteDependent() from context
> 'SoftDeletableBehavior' "
>
> so thats "$model->_deleteDependent($id, $cascade);" on line 102
>
> This error is because as per the migration guides comments, there are
> now visibility keywords for model methods.
>
> so, how can i access these methods from the behaviour?
>
> Thanks for any help.  it would be really usefull to get this working
> as its a behaviour im sure lots of people use a lot.
>
> Will
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
Regards,
Zaky Katalan-Ezra
QA Administrator
www.IGeneriX.com
Sites.IGeneriX.com
054-7762312

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: hi guys

2011-09-17 Thread Zaky Katalan-Ezra
See this
http://planetcakephp.org/aggregator/items/2102-cakephp-ajax-country-region-select-box-combo-box

On Fri, Sep 16, 2011 at 11:41 PM, aortizhi  wrote:

> I have this problem, i create a form that will display select field
> here's my code:
>  echo $this->Form->input('proveedore_id');
> echo $this->Form->input('nombre_archivo');
> echo $this->Form->input('token_separador');
> echo $this->Form->input('Tabla Correspondiente', array('options' =>
> $campos,'id'=>'choose', 'onChange'=>'prueba()'));
> ?>
> 
> But i would like to know from my controller when an option is selected
> to make query to my database, can someone help me?
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Media plugin and user plugin

2011-09-17 Thread Zaky Katalan-Ezra
I didn't change register action at all.
I just added the Media behaviors to user model $actsAs.
Its working perfectly in other controllers.

Anyway I found a solution:
I needed the media plugin in order to upload the user profile image.
I removed the 'Media.Coupler' from the user model $actsAs
and add this code at user controller upload_image action:

public function upload_image() {
$this->User->Behaviors->attach('Media.Coupler');
...
...
$this->User->Behaviors->detach('Media.Coupler');
$this->redirect($this->referer());
}

But it means that I can't add image_file field to registration form.
After the user registered and verified his account he should enter his
profile page and add an image.

I should try using the media plugin on a clean solution to decide where is
the problem


On Fri, Sep 16, 2011 at 12:34 PM, WebbedIT  wrote:

> More information required ...
>
> - have you echoed $this->data on submit to see what data there is
> - how are you calling save in the controller?
> - have you looked at the sql dump to see what Cake is trying?
>
> HTH, Paul
> @phpMagpie
>
> On Sep 15, 11:11 am, ZAky  wrote:
> > adding media plugin, 'Media.Coupler', behavior to users plugin model
> > prevent creating new user.
> > I want to save the profile image path in users table.
> > Any suggestions?
>
> --
> 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
>
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Se Ya Cake..bake a dick cake frosting on your face...............

2011-09-15 Thread Zaky Katalan-Ezra
CakePHP  is a framework not a product like joomla/durpal
You should usually use it when one  of the shelf products like
joomla/durpal/wordpress/socialEngine  don't fit the project needs.
Usually in those cases the customer will not tell you how to develop.

Now if you decided to write from scratch you need a framework.
And the question how to choose one is a matter of different thread.

I developed 2 major scale application for a big telecommunication company in
Israel in the last two years.
Its only for the company users and suppliers thats why you will not see it
in "just baked"
Someone else mentioned American Idol back office application etc.

A certification program is a nice idea. I know it helped me to cover all the
subjects when I learned for .net MCSD.



FACTS:
In oDesk there is 3500 PHP jobs and a 1000 of them is in joomla/drupal.
There is also 88 zend projects 1 symphony and 63 Cakephp.
So what you can learn from this?

On Thu, Sep 15, 2011 at 5:26 PM, Janos Csikos  wrote:

> Hi Guys,
>
> I'm Cake fan since 2006 and excited about the coming 2.0, but I have
> to say this "CLASSIC trolling" means something.
>
> I mean thats true there is no CakePHP jobs posted.
> That's true there is not the latest cake sites are listed in the "just
> baked" box on cakephp.org.
> And also true the drupal (and ror, zend, ) much more popular than cake:
>
> http://www.google.com/trends?q=cakephp%2C+django%2C+ruby+on+rails%2C+zend+framework&ctab=0&geo=all&date=all&sort=0
>
> Only we (cake community) can change on these:
> 1. The framework getting better so more developer will like it, but it
> still can not be part of the enterprise targets until:
>  - there is no developing platform behind that ... I hate saying
> that but I'm still developing in textmate rather than "cakeified"
> Eclipse or "CloudIDE" (Zend has)
>  - there is no centralised Certification System just like Zend
> has. (does the community need it?)
> 2. Why we don't send our last built site to the cake community as
> "just baked" (should we?). Actually I don't do that, so who could able
> to say that million $$ site is written in cake or not?
> 3. If that is the tendency, then why we don't publish a very easy
> configurable/usable off-self CMS/shop/anything? I'm sure you are also
> done some nice idea in cake, not just me. Worth to share?
>
> What do you think? This "seo optimized question strategy" is helps or
> just damage prestige of cake?
>
> Please let me know if you agree or disagree with me or you have any
> comment.
>
> Thanks,
> Janos
>
> ps: sorry about my english
>
> On Mon, Sep 12, 2011 at 8:28 AM, rchavik  wrote:
> > His style is writing is different compared to previous postings.  Perhaps
> > his account was compromised
> >
> > --
> > 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 For more options, visit this group
> at
> > http://groups.google.com/group/cake-php
> >
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: filtering model result bases on user rights

2011-09-15 Thread Zaky Katalan-Ezra
For the list result you join docs and docs token and check that the user
tokens are IN the join result.
To prevent url changes I suggest
1. use uuid as document id.
2. Create a function in the database that take user_id and doc_id and return
true/false
Call this function in  documents/view or edit.

On Thu, Sep 15, 2011 at 5:59 PM, Timmay  wrote:

> the example I gave is a simplified version of the real situation.
>
> The real situation is that a user has two sets of tokens (lets say A
> and B).
> These properties are stored in another table, named user_tokens.
>
> A document also has two sets of tokens (lets also call them A and B).
> These properties are stored in a table 'document_tokens'.
>
> A user is allowed to see the document if:
> the user and the document have at least one token in set A in common
> and
> the user and the document have at least one token in set B in common.
>
>
> On Sep 15, 10:42 am, Zaky Katalan-Ezra  wrote:
> > How do you save the permissions in the database?
> >
> >
> >
> > On Thu, Sep 15, 2011 at 10:53 AM, Timmay  wrote:
> > > Hi all,
> >
> > > I'm working on a multi user website with a collection of documents.
> > > Every user is only allowed to see a subset of the documents.
> >
> > > I want the Documents model to only return the documents that a user is
> > > allowed to see.
> > > If a users requests one particular document, and he doesn't have
> > > rights to see the document (e.g. he modified the url), I want the
> > > model to return nothing.
> >
> > > Is there an easy way to achieve this?
> >
> > > --
> > > Our newest site for the community: CakePHP Video Tutorials
> > >http://tv.cakephp.org
> > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> > > others with their CakePHP related questions.
> >
> > > To unsubscribe from this group, send email to
> > > cake-php+unsubscr...@googlegroups.com For more options, visit this
> group
> > > athttp://groups.google.com/group/cake-php
> >
> > --
> > Regards,
> > Zaky Katalan-Ezra
> > QA Administratorwww.IGeneriX.com
> > Sites.IGeneriX.com
> > 054-7762312
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
Regards,
Zaky Katalan-Ezra
QA Administrator
www.IGeneriX.com
Sites.IGeneriX.com
054-7762312

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: filtering model result bases on user rights

2011-09-15 Thread Zaky Katalan-Ezra
How do you save the permissions in the database?

On Thu, Sep 15, 2011 at 10:53 AM, Timmay  wrote:

> Hi all,
>
> I'm working on a multi user website with a collection of documents.
> Every user is only allowed to see a subset of the documents.
>
> I want the Documents model to only return the documents that a user is
> allowed to see.
> If a users requests one particular document, and he doesn't have
> rights to see the document (e.g. he modified the url), I want the
> model to return nothing.
>
> Is there an easy way to achieve this?
>
>
>
>
>
>
>
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
Regards,
Zaky Katalan-Ezra
QA Administrator
www.IGeneriX.com
Sites.IGeneriX.com
054-7762312

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: display last 5 inserted image

2011-09-15 Thread Zaky Katalan-Ezra
By "other kind" you mean different size?
If yes.
Media plugin let you create 3 sizes (or maybe more) of images from the
uploaded file.
small/medium/large stored in s,m,l folders.
In different pages you can refer different size by prefix the image name
with the right folder.
example:
You get from the database dirname = images and basname=img.png and you
create two different links in different pages
1. dirname/*s*/basename for small image
2. dirname/*l*/basename for large image
etc

On Thu, Sep 15, 2011 at 10:45 AM, Sivaramakrishnan S
wrote:

>
>
> hi ,
> i used tab to mention some images, i need to display some other kind of
> images in another tab,how can i add that?
>
>
>  --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: display last 5 inserted image

2011-09-14 Thread Zaky Katalan-Ezra
It's not a good idea to change the images size in the html.
Change the image to the desired size when uploading.
Media plugin can assist you with this issue.

On Thu, Sep 15, 2011 at 9:28 AM, Sivaramakrishnan S
wrote:

>
>
> hi,
>>
>
>   can we set the size of the images which displayed in the template,
> any one can help me,please?
>
>  --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
Regards,
Zaky Katalan-Ezra
QA Administrator
www.IGeneriX.com
Sites.IGeneriX.com
054-7762312

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Login to a CakePHP application from another site doesn't work

2011-09-14 Thread Zaky Katalan-Ezra
Use oauth <http://oauth.net/>, openid <http://openid.net/> ...

On Wed, Sep 14, 2011 at 7:56 PM, byqsri  wrote:

> Hi
> I have my  web application in CakePHP .
> All works fine.
> Now I would do an autologin in my web application  from another site .
> To do this I have done a identical login form in my site and with
> javascrpt I post it to my web application.
> But it doesn't work . With this method I can't login to my web
> application . I always redirect tio login page.
> I have verify that the session is lost between the login and the
> redirect to initial page of my web application.
> Can someone help me about this?
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
Regards,
Zaky Katalan-Ezra
QA Administrator
www.IGeneriX.com
Sites.IGeneriX.com
054-7762312

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Part time code maintaining

2011-09-14 Thread Zaky Katalan-Ezra
I also recommend http://www.earthtechnology.co.in/
I work with them for a long time with great satisfaction.
Contact Debasish banerjee deban...@gmail.com


On Wed, Sep 14, 2011 at 6:18 AM, Amresh Singh wrote:

> Dear Amit
>
> There is no problem. I am interested in part time job.
>
> Regares
>
> Amresh kumar singh
>
> On Fri, Sep 9, 2011 at 7:52 AM, Amit  wrote:
>
>> Hey guys - I've written a simple application for a non-profit
>> organization. I won't be able to fully support and maintain the code
>> and looking to find a service provider to take it over. Are there
>> companies that do that type of stuff? Any recommendations
>>
>> --
>> 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 For more options, visit this group
>> at http://groups.google.com/group/cake-php
>>
>
>  --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Media plugin transferTo

2011-09-14 Thread Zaky Katalan-Ezra
Thank you

Media plugin some how bind to the save function.
So How do I tell the media plugin not to run after save and run only when I
have the post_id?

On Wed, Sep 14, 2011 at 11:47 AM, BenJsno  wrote:

> You have to save your post before upload the file.
> in your Post_controller :
>
>function add() {
>[...]
>if (!empty($this->data)) {
>
>$this->Post->create();
>if ($this->Post->save($this->data)) {
>[...]
>$new_id = $this->Post->id
>// you can maybe put this data temporarily
> in the session
>$this->Session->write('Post.last_id',
> $this->Post->id);
>} else {
>[...]
>}
>}
>
>[...]
>}
>
> Hope this helps you
>
>
> On 13 sep, 13:24, ZAky  wrote:
> > I save my posts files under /files/[user_id]/[post_id]/[image].
> > This mean I need to know the just seved post id in Post->transfer_to.
> > How do I achieve that?
> >
> > Thank you
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
Regards,
Zaky Katalan-Ezra
QA Administrator
www.IGeneriX.com
Sites.IGeneriX.com
054-7762312

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Why is this better?

2011-09-12 Thread Zaky Katalan-Ezra
Theoretically if the  tag spec will change you will be able to change it
in one place.
For example if you used  or  tag and you want to change this
to  tag to be more html5

On Sun, Sep 11, 2011 at 10:42 PM, Miles J  wrote:

> I actually posted a blog post about this:
>
> http://milesj.me/blog/read/end-html-helper
>
> On Sep 11, 1:28 am, elija  wrote:
> > Thank you. That makes sense and now I don't have to learn it the hard
> > way.
> >
> > On Sep 11, 8:30 am, Ryan Schmidt  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > On Sep 11, 2011, at 02:29, elija wrote:
> >
> > > > Yes it is readable and concise but a simple  is
> even
> > > > easier to read and doesn't use PHP to generate a link.  What I was
> > > > actually wondering was is there any advantage in CakePHP to using the
> > > > HTML Helper rather than just writing HTML in a view?
> >
> > > The advantage of using PHP to generate the links is that if you change
> how your routes are arranged, you don't then also have to update all your
> links in your views.
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
Regards,
Zaky Katalan-Ezra
QA Administrator
www.IGeneriX.com
Sites.IGeneriX.com
054-7762312

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: pass information to the view

2011-09-11 Thread Zaky Katalan-Ezra
Yes

On Sun, Sep 11, 2011 at 9:06 PM, euromark wrote:

> @zaky
> you meant..
> $this->set(compact('campos'));
>
> @aortizhi
> you can then access it with
> $campos['Model']['field']
>
>
>
>
> On 11 Sep., 19:21, Zaky Katalan-Ezra  wrote:
> > $this->set('campos',$campos);
> > or
> > $this->set(compact($campos));
> >
> >
> >
> >
> >
> >
> >
> > On Sun, Sep 11, 2011 at 7:28 PM, aortizhi  wrote:
> > > Hi everyone, i have a problem passing infomation to my view. Here's my
> > > code
> >
> > > in my controller
> >
> > > public $campos; //global variable
> >
> > > if (empty($this->data)) {
> > > $this->data = $this->ArchivosSistema->read(null, $id);
> > > $this->campos=$this->ArchivosSistema->LeerTXT($this-
> > > >data['ArchivosSistema']['nombreTXT']);
> > > }
> >
> > > campos is an array that is return from my model with some information
> > > that i would like to show in my view but a i don't know how to access
> > > it
> >
> > > in my view i have this:
> >
> > > echo $this->ArchivosSistemas->$campos;
> >
> > > but it shows me this, "undefined property: View::$ArchivosSistemas",
> > > ArchivosSistemas is my controller's name.
> >
> > > Can anyone help me please.
> >
> > > --
> > > Our newest site for the community: CakePHP Video Tutorials
> > >http://tv.cakephp.org
> > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> > > others with their CakePHP related questions.
> >
> > > To unsubscribe from this group, send email to
> > > cake-php+unsubscr...@googlegroups.com For more options, visit this
> group
> > > athttp://groups.google.com/group/cake-php
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
Regards,
Zaky Katalan-Ezra
QA Administrator
www.IGeneriX.com
Sites.IGeneriX.com
054-7762312

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: pass information to the view

2011-09-11 Thread Zaky Katalan-Ezra
$this->set('campos',$campos);
or
$this->set(compact($campos));

On Sun, Sep 11, 2011 at 7:28 PM, aortizhi  wrote:

> Hi everyone, i have a problem passing infomation to my view. Here's my
> code
>
> in my controller
>
> public $campos; //global variable
>
> if (empty($this->data)) {
> $this->data = $this->ArchivosSistema->read(null, $id);
> $this->campos=$this->ArchivosSistema->LeerTXT($this-
> >data['ArchivosSistema']['nombreTXT']);
> }
>
> campos is an array that is return from my model with some information
> that i would like to show in my view but a i don't know how to access
> it
>
> in my view i have this:
>
> echo $this->ArchivosSistemas->$campos;
>
> but it shows me this, "undefined property: View::$ArchivosSistemas",
> ArchivosSistemas is my controller's name.
>
> Can anyone help me please.
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: successful - login interceptor

2011-08-29 Thread Zaky Katalan-Ezra
Take a look at cakedc users plugin

On Mon, Aug 29, 2011 at 11:46 PM, rethab  wrote:

> Hi there
>
> I currently have a Users controller, which contains a login method.
> This method is in turn invoked every time the login form gets
> displayed to the user. In the app_controller, I setup the Auth like
> the following:
>
> $this->Auth->logoutRedirect = array('controller' => 'users', 'action'
> => 'login');
> $this->Auth->actionPath = 'controllers/';
> $this->Auth->authorize = 'actions';
> $this->Auth->autoRedirect = true;
> $this->Auth->loginRedirect = array('controller' => 'users', 'action'
> => 'home');
>
> Now, I tried to implement something like a 'last-logged-in' thing
> (store a timestamp in the DB). But, I found no way to intercept when a
> user successfully logs in. I tried the login method, but this one get
> invoked every time. Whether the user sends a wrong form or an empty
> one - the login method gets invoked and I cannot find out whether that
> was a successful one.
>
> Is there anything like a callback or some other method I can override/
> register in order to get to know when a successful login happened?
>
> Thanks for your help!
>
> - Rethab
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Noob Looking for help editing site.

2011-08-29 Thread Zaky Katalan-Ezra
For static pages:
Put your html under app/views/pages
change the extension to ctp
for example
app/views/pages/whatwedo.ctp

Now you can brows to http://my.domain.com/pages/whatwedo


On Mon, Aug 29, 2011 at 3:33 PM, Ashley Gibbon  wrote:

> The site is built on cakephp framework.
> I had a guy build the site, he is still working on the back end.
>
> I want to add pages of information about what we do.
> The site is currently at velocity.phpmydev.com
>
> I simply cannot figure out where content for the site is located, e.g.
> where the text body content here is. In what file in what folder etc.
>
> If I could only figure this out I may be able to move ahead.
>
> Also, what tool is used to develop sites like this, Dreamweaver or
> something else?
>
> Thanks. Ashley.
>  On Aug 29, 2011 8:07 AM, "Zaky Katalan-Ezra"  wrote:
> > How it relate to cake?
> > What do you have now on your site?
> > What content do you want to add?
> > etc.
> >
> >
> > On Sat, Aug 27, 2011 at 6:02 PM, Binkoba M24 414 
> wrote:
> >
> >> Hi
> >>
> >> I need some help figuring out how to edit and add pages to a site I
> >> had built. I have the ftp access, but it does not seem to be a normal
> >> http site, and I cannot find where to put content.
> >>
> >> Site address is http://velocity.phpmydev.com
> >>
> >> I may be interested in paying for the advice I need, I want to be able
> >> to do the work myself from now on.
> >>
> >> Ashley
> >>
> >> --
> >> 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 For more options, visit this
> group
> >> at http://groups.google.com/group/cake-php
> >>
> >
> > --
> > 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Noob Looking for help editing site.

2011-08-29 Thread Zaky Katalan-Ezra
How it relate to cake?
What do you have now on your site?
What content do you want to add?
etc.


On Sat, Aug 27, 2011 at 6:02 PM, Binkoba M24 414  wrote:

> Hi
>
> I need some help figuring out how to edit and add pages to a site I
> had built. I have the ftp access, but it does not seem to be a normal
> http site, and I cannot find where to put content.
>
> Site address is http://velocity.phpmydev.com
>
> I may be interested in paying for the advice I need, I want to be able
> to do the work myself from now on.
>
> Ashley
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Scalable CakePHP Architecture

2011-08-27 Thread Zaky Katalan-Ezra
Splitting the code got nothing to do with application scalability.
As you mentioned split the code to plug-ins and make some of them open
source to gain community contribution.
Then scale the application with common solutions like clusters, database
replications etc.


On Thu, Aug 25, 2011 at 8:30 PM, Marco B  wrote:

> Hi everybody,
>
> we have a photo selling/sharing web project. Our customers get a
> personal portfolio page and can sell their photography.
> Because of an increasing amount of users, we are planning to add some
> more web servers.
>
> Right now we have one big cake application with the tasks split into
> different controllers.
> With regard to scalability (scale service delivery and increase the
> number of developers) and the option to outsource parts of the
> development, without giving access to the whole code, we plan to split
> our project into smaller parts/services.
>
> The Services could be split into following groups:
>  - static info pages of our project
>  - administration interface / customer area
>  - photoupload
>  - scaling/cropping/converting photos
>  - web pages of our customers with their galleries
>
> Now I have three options:
>
> 1) keeping everything in one application with different controllers.
> 2) put every service in a individual cake app (some models can be
> shared with a common directory)
> 3) configure every service to be a plugin
>
> How would you split the cake-application? Which strategy would you
> apply?
>
> Thanks,
> Marco
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: save option instead of select value

2011-08-22 Thread Zaky Katalan-Ezra
1.You can cover the state array to be an array of key=value
OR
2.Use the id to fetch the state name before saving.

On Mon, Aug 22, 2011 at 6:15 PM, arron  wrote:

> that maybe true but i cant get that to work using the simple mail and
> wizard components. I dont necessarily need it to save to the database
> but just be able to send the name for the state as a email instead of
> a number
>
> On Aug 17, 2:08 am, WebbedIT  wrote:
> > I know Irun the risk of preaching to the converted here, but if you
> > have a table of states with IDs and Names then you should only ever
> > save the ID as you never want to save the name more than once.  What
> > if you need to change the name of a state (mis-spelling) you then have
> > to run multiple updates to change mulitple occurences rather than
> > changing just the one record in the lookup table.
> >
> > It takes no time at all to then reference the state's name once you
> > have the ID as Cake will automatically include any belongsTo
> > associations when running finds on the model and therefore include the
> > state name in $findResult['State']['name']. Maybe you need to go back
> > to whoever is saying you need to store the name and convince them
> > otherwise.
> >
> > On Aug 16, 10:04 pm, arron  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > I have a dependent drop down
> > > using jquery works fine
> >
> > > I found out today that i need to populate the name of the state in
> > > another table instead of the id.
> >
> > > in my controller i use a simple find to populate the select box.
> >
> > > //controller
> >
> > > $states= $this->State->find('list',array
> > > ('fields'=>array('State.id','State.state')));
> >
> > > $this->set(compact('states'));
> >
> > > in my view when someone picks the state it populates the city
> > > then saves it to my users table state_id
> >
> > > //view
> >
> > >  $this->Form->select('state_id',array($states),'state',array('id'=>'states')
> ,false);
> >
> > > ?>Form-
> >
> > > >select('city_id',array('name'),'null',array('id'=>'cites'),false);?>
> >
> > > the problem i am facing is how can i save the state name instead of
> > > the value ?
> >
> > > if i change my controller to this:
> >
> > > //controller
> >
> > > $states= $this->State->find('list',array
> > > ('fields'=>array('State.state','State.state')));
> >
> > > $this->set(compact('states'));
> >
> > > It will save the form as i needed it, but my find will not work
> > > because there is no id for the where clause.
> >
> > > i just need to save my option instead of my id and cant figure it out
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
Regards,
Zaky Katalan-Ezra
QA Administrator
www.IGeneriX.com
Sites.IGeneriX.com
054-7762312

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Email Question

2011-08-19 Thread Zaky Katalan-Ezra
I think you need to use some desktop client that support "read receipt" in
order to do that

On Sat, Aug 20, 2011 at 12:15 AM, Krissy Masters  wrote:

>  I am sending out emails and I want to know that the person has opened it.
> How does one go about this? I have a link in the email they can click to
> view in browser and I can tell when that happens but as for straight email
> viewing I'm stumped.
>
> Not much detail in the question but I figure its rather straight to the
> point J
>
> ** **
>
> Thanks everyone as I wait in anticipation for any help.
>
> ** **
>
> K
>
> ** **
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: save and update

2011-08-19 Thread Zaky Katalan-Ezra
Try and see.

On Fri, Aug 19, 2011 at 11:30 AM, Prabha vathi wrote:

> It is auto increment. If you click view source, you will get the page html
> coding. You can save that form in your local computer. Now if you edit the
> form and add one hidden id field and if you submit.  ?
>
> So what will happen on that time?
>
>  --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
Regards,
Zaky Katalan-Ezra
QA Administrator
www.IGeneriX.com
Sites.IGeneriX.com
054-7762312

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: save and update

2011-08-19 Thread Zaky Katalan-Ezra
You can't prevent editing the article and replacing the whole text.
You can set the title to disable if a week passed since the article created.

On Fri, Aug 19, 2011 at 10:42 AM, Teddy Zeenny wrote:

> *Now instead of posting, If someone try to post a new story with old
> post's id what will happen?*
>
> How could that happen ? Isn't your post id a database auto-increment ?
>
>
> On Fri, Aug 19, 2011 at 10:09 AM, Prabha vathi 
> wrote:
>
>> Hi,
>>
>> I have created a site, where people can also post. If we pass id, cakephp
>> will update.
>>
>> Now instead of posting, If someone try to post a new story with old post's
>> id what will happen?
>> How to avoid such a things happening?
>>
>> --
>> 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 For more options, visit this group
>> at http://groups.google.com/group/cake-php
>>
>
>  --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
Regards,
Zaky Katalan-Ezra
QA Administrator
www.IGeneriX.com
Sites.IGeneriX.com
054-7762312

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Multiple model

2011-08-18 Thread Zaky Katalan-Ezra
Every one how need to login to the application is a user, there for need to
be saved in the users table.
If you save additional attribute about a specific user it should be in a
different table.
When you want admins you call select * from users where is_admin = 1;
And when you want agents you call select * from users where role = 'agent'
and join it with the agents table.
What is the problem with mixing users in the same table?


On Fri, Aug 19, 2011 at 3:59 AM, Mohd Hasnol  wrote:

> Hi zaky,
>
> Thanks for the response. actually i dont face a problem with
> authentication.The problem is when the admin fill in agents details
> including username and password, where should it be save? is it in agent
> table or user table(for admin). Since when login, it will recall username
> and password inside user's table and not agent's table. As i mention before,
> i plan not to mix admin details and agent details.
>
> I already insert user_id inside agent table but still does'nt work. I
> already create for user and group and it work.
>
> Thanks.
> nOLL
>
> On Thu, Aug 18, 2011 at 6:00 PM, Zaky Katalan-Ezra wrote:
>
>> Add a role column to the user info for role based access.
>> I suggest using cakedc users plugin.
>> When creating a new user you can specify a role.
>> I use this code in /cotroller/users/login
>>
>> if ($this->Auth->user()) {
>> if($this->Auth->user('is_admin') == 1) {
>>
>> $this->Auth->redirect('/admin/users/users/dashboard');
>> } else if ($this->Auth->user('role') == 'agent') {
>>
>> $this->Auth->redirect('/agent/users/users/dashboard');
>> }else {
>>
>> $this->Auth->redirect('/users/users/dashboard');
>> }
>> }
>>
>> On Thu, Aug 18, 2011 at 12:14 PM, Mohd Hasnol wrote:
>>
>>> Hi zaky,
>>>
>>> i already create agent table with user_id reference. But, i still cannot
>>> login as agent, since my login function will recall username and password in
>>> users table. There is no agent's info in the users table. Correct me if i
>>> got wrong concept.
>>>
>>> Thanks.
>>>
>>> nOLL.
>>>
>>> On Thu, Aug 18, 2011 at 10:45 AM, Zaky Katalan-Ezra >> > wrote:
>>>
>>>> Use users plugin.
>>>> Create an agent table with the additional attribute and user_id to
>>>> reference the user.
>>>> Make /users/register visible to admin only.
>>>> After successful new user registration if the user role is agent,
>>>> redirect to /admin/agent/add.
>>>> If you choose to implement role based access you can check the user role
>>>> in login function and redirect the user with the right prefix.
>>>>
>>>> On Thu, Aug 18, 2011 at 4:22 AM, Mohd Hasnol wrote:
>>>>
>>>>> Thanks.But how the agent would like to login since admin and agents use
>>>>> same login page. i use users table for login function. how i can link 
>>>>> agent
>>>>> table to the login function? for my case,at first, admin will decide 
>>>>> agents
>>>>> username and password. Then,admin will give it to the agents and they 
>>>>> could
>>>>> change their password.
>>>>>
>>>>> Thanks.
>>>>>
>>>>> On Wed, Aug 17, 2011 at 5:21 PM, WebbedIT  wrote:
>>>>>
>>>>>> ACL has little to do with this as your simply talking about which
>>>>>> model to use when creating an Agent, which has more field than a
>>>>>> standard User.
>>>>>>
>>>>>> There is no right answer and you have a choice of using either /users/
>>>>>> agentAdd(agentEdit) or /agents/add(edit).
>>>>>>
>>>>>> I personally prefer to keep my add and edit actions within their
>>>>>> respective controllers so would use the Agent model and include the
>>>>>> required User fields in the form.  As long as you use $this->Agent-
>>>>>> >saveAll(); cake will deal with associating the two records for you.
>>>>>>
>>>>>> HTH, Paul.
>>>>>>
>>>>>> On Aug 16, 5:28 am, Mohd Hasnol  wrote:
>>>>>> > FYI, Im using ACL for this case.
>>>>>> >
>>>>>> &g

Re: Subclassing one's own Controllers

2011-08-18 Thread Zaky Katalan-Ezra
I think you can find an example in "Practical CakePHP Projects" book

On Thu, Aug 18, 2011 at 11:14 AM, Eric Blanpied wrote:

> I'm a reasonably-experienced cake developer (several shipping apps
> over a few years), and I've now got a project with a well-developed
> Controller class that now requires several variations, all of which
> would still rely on the same model. My general OOP instinct is to
> subclass the controller class, but when I try that in cake (1.3) I get
> a class-not-found error. I've seen some discussion of using behaviors
> for this, but that seems contrary to this setup, where the main
> controller has a model, plenty of views, methods, etc.
>
> Advice?
>
> thanks
>
> -eric
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Multiple model

2011-08-18 Thread Zaky Katalan-Ezra
Add a role column to the user info for role based access.
I suggest using cakedc users plugin.
When creating a new user you can specify a role.
I use this code in /cotroller/users/login

if ($this->Auth->user()) {
if($this->Auth->user('is_admin') == 1) {

$this->Auth->redirect('/admin/users/users/dashboard');
} else if ($this->Auth->user('role') == 'agent') {

$this->Auth->redirect('/agent/users/users/dashboard');
}else {
$this->Auth->redirect('/users/users/dashboard');
}
}

On Thu, Aug 18, 2011 at 12:14 PM, Mohd Hasnol  wrote:

> Hi zaky,
>
> i already create agent table with user_id reference. But, i still cannot
> login as agent, since my login function will recall username and password in
> users table. There is no agent's info in the users table. Correct me if i
> got wrong concept.
>
> Thanks.
>
> nOLL.
>
> On Thu, Aug 18, 2011 at 10:45 AM, Zaky Katalan-Ezra 
> wrote:
>
>> Use users plugin.
>> Create an agent table with the additional attribute and user_id to
>> reference the user.
>> Make /users/register visible to admin only.
>> After successful new user registration if the user role is agent, redirect
>> to /admin/agent/add.
>> If you choose to implement role based access you can check the user role
>> in login function and redirect the user with the right prefix.
>>
>> On Thu, Aug 18, 2011 at 4:22 AM, Mohd Hasnol wrote:
>>
>>> Thanks.But how the agent would like to login since admin and agents use
>>> same login page. i use users table for login function. how i can link agent
>>> table to the login function? for my case,at first, admin will decide agents
>>> username and password. Then,admin will give it to the agents and they could
>>> change their password.
>>>
>>> Thanks.
>>>
>>> On Wed, Aug 17, 2011 at 5:21 PM, WebbedIT  wrote:
>>>
>>>> ACL has little to do with this as your simply talking about which
>>>> model to use when creating an Agent, which has more field than a
>>>> standard User.
>>>>
>>>> There is no right answer and you have a choice of using either /users/
>>>> agentAdd(agentEdit) or /agents/add(edit).
>>>>
>>>> I personally prefer to keep my add and edit actions within their
>>>> respective controllers so would use the Agent model and include the
>>>> required User fields in the form.  As long as you use $this->Agent-
>>>> >saveAll(); cake will deal with associating the two records for you.
>>>>
>>>> HTH, Paul.
>>>>
>>>> On Aug 16, 5:28 am, Mohd Hasnol  wrote:
>>>> > FYI, Im using ACL for this case.
>>>> >
>>>> >
>>>> >
>>>> >
>>>> >
>>>> >
>>>> >
>>>> > On Tue, Aug 16, 2011 at 12:26 PM, nOLL  wrote:
>>>> > > Hi,
>>>> >
>>>> > > Let say, I'm admin and i would like to add agents but i would like
>>>> to
>>>> > > use different model (not users model). For example, agents model.
>>>> the
>>>> > > reason i use different model because there is other attributes i
>>>> would
>>>> > > like to fill in rather than username and password in users model.
>>>> What
>>>> > > is the best solution for this?
>>>> >
>>>> > > Thanks.
>>>> > > nOLL
>>>> >
>>>> > > --
>>>> > > Our newest site for the community: CakePHP Video Tutorials
>>>> > >http://tv.cakephp.org
>>>> > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd
>>>> help
>>>> > > others with their CakePHP related questions.
>>>> >
>>>> > > To unsubscribe from this group, send email to
>>>> > > cake-php+unsubscr...@googlegroups.com For more options, visit this
>>>> group
>>>> > > athttp://groups.google.com/group/cake-php
>>>>
>>>> --
>>>> 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: Multiple model

2011-08-17 Thread Zaky Katalan-Ezra
Use users plugin.
Create an agent table with the additional attribute and user_id to reference
the user.
Make /users/register visible to admin only.
After successful new user registration if the user role is agent, redirect
to /admin/agent/add.
If you choose to implement role based access you can check the user role in
login function and redirect the user with the right prefix.

On Thu, Aug 18, 2011 at 4:22 AM, Mohd Hasnol  wrote:

> Thanks.But how the agent would like to login since admin and agents use
> same login page. i use users table for login function. how i can link agent
> table to the login function? for my case,at first, admin will decide agents
> username and password. Then,admin will give it to the agents and they could
> change their password.
>
> Thanks.
>
> On Wed, Aug 17, 2011 at 5:21 PM, WebbedIT  wrote:
>
>> ACL has little to do with this as your simply talking about which
>> model to use when creating an Agent, which has more field than a
>> standard User.
>>
>> There is no right answer and you have a choice of using either /users/
>> agentAdd(agentEdit) or /agents/add(edit).
>>
>> I personally prefer to keep my add and edit actions within their
>> respective controllers so would use the Agent model and include the
>> required User fields in the form.  As long as you use $this->Agent-
>> >saveAll(); cake will deal with associating the two records for you.
>>
>> HTH, Paul.
>>
>> On Aug 16, 5:28 am, Mohd Hasnol  wrote:
>> > FYI, Im using ACL for this case.
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > On Tue, Aug 16, 2011 at 12:26 PM, nOLL  wrote:
>> > > Hi,
>> >
>> > > Let say, I'm admin and i would like to add agents but i would like to
>> > > use different model (not users model). For example, agents model. the
>> > > reason i use different model because there is other attributes i would
>> > > like to fill in rather than username and password in users model. What
>> > > is the best solution for this?
>> >
>> > > Thanks.
>> > > nOLL
>> >
>> > > --
>> > > Our newest site for the community: CakePHP Video Tutorials
>> > >http://tv.cakephp.org
>> > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
>> > > others with their CakePHP related questions.
>> >
>> > > To unsubscribe from this group, send email to
>> > > cake-php+unsubscr...@googlegroups.com For more options, visit this
>> group
>> > > athttp://groups.google.com/group/cake-php
>>
>> --
>> 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 For more options, visit this group
>> at http://groups.google.com/group/cake-php
>>
>
>  --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Using SELECT... FOR UPDATE in cakephp

2011-08-13 Thread Zaky Katalan-Ezra
>> "without using the $Model::query function (as this is highly not
recommended)"
Why its not recommended?

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: how to run script if a field in database table becomes 0

2011-08-10 Thread Zaky Katalan-Ezra
1. A database trigger ca be a option.
2. Fetching the row after successful update and check for copun=0;
3. afterSave call back http://book.cakephp.org/view/1053/afterSave
4. If $this->data['deals']['coupon'] == 0 before you save you know you
should run the method.

On Wed, Aug 10, 2011 at 11:32 AM, abhimanyu bv  wrote:

> The function should automatically called when coupons becomes 0.
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
Regards,
Zaky Katalan-Ezra
QA Administrator
www.IGeneriX.com
Sites.IGeneriX.com
054-7762312

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Newsletter plugin (send e-mails in backgroud)

2011-07-05 Thread Zaky Katalan-Ezra
Create only text files with all the data and use schedule to run another
application to process those file and send the emails.

On Mon, Jul 4, 2011 at 4:19 AM, Uziel Barbosa
wrote:

> Anyone know a cakephp plugin for sending emails (newsletter). But I need
> to send an email in backgroud, sending a number of e-mail at a time, to
> avoid overloading the server.
> Does anyone know any way?
> Thanks.
>
> --
> Uziel Barbosa
> GodLabs
> IFAL
> @uzielbarbosa
>
>
>  --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
Regards,
Zaky Katalan-Ezra
QA Administrator
www.IGeneriX.com
Sites.IGeneriX.com
054-7762312

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: I need plugin to build social network

2011-07-04 Thread Zaky Katalan-Ezra
Try socialengine <http://www.socialengine.net/> framework

On Mon, Jul 4, 2011 at 11:20 AM, euromark wrote:

> i need a drink
> a drink that can make my day :)
>
> On 4 Jul., 05:33, taqman filler  wrote:
> > I need to use cake plugin to build social network
> >  plugin of the kind that can make it
> >
> > thank
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
Regards,
Zaky Katalan-Ezra
QA Administrator
www.IGeneriX.com
Sites.IGeneriX.com
054-7762312

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Wordpress and CakePHP - cake taking controll of URLS

2011-06-20 Thread Zaky Katalan-Ezra
Editing the .htaccess is a good method if the files you want to directly
access is some how part of your cake solution.
A calculator you downloaded from somewhere and you want to add to your app
without the need to integrate it to you cake code, for example.

But the problem here have no connection to cake.
Its an apache issue.
You set the site domain and you want to allow mod rewrite on the apache root
folder and exclude it from one of the directories under the apache root.

Why make it a cake issue if its not?

You can also use blog.mysite.com which is more elegant I think.
See http://httpd.apache.org/docs/2.2/vhosts/examples.html

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Wordpress and CakePHP - cake taking controll of URLS

2011-06-20 Thread Zaky Katalan-Ezra
Under Linux/Apache I did the following:
1. Created a symlink under /var/www for the blog #not under cake at all.
2. Added alias record in /etc/apache2/sites-available/yourdomai.vhost
Alias /phpmyadmin/ /usr/share/phpmyadmin/
Alias /phpmyadmin /usr/share/phpmyadmin/


On Mon, Jun 20, 2011 at 6:26 PM, chris wrote:

> I realise that this appears to have been covered a few times, but I
> can't seem to get it to work how other people have.
>
> I'm trying to move an existing wordpress install, to be hosted on the
> same domain as my cake app.
>
> So i've copied the root of the existing blog.mysite.com to the /blog/
> under the webroot of mysite.com
>
> So my webroot is similar to this listing
>
> blog/
> css/
> files/
> img/
> js/
> .htaccess
> css.php
> index.php
>
>
> So I can then access the wordpress site at www.mysite.com/blog and the
> cake app still shows up for everything else www.mysite.com. However,
> as soon as I try to visit a link in Wordpress such as
>
> blog/2011/05/name-of-a-post
>
> I get the cakePHP error message of
>
> Missing Controller
>
> Error: BlogController could not be found.
>
> etc
>
> Any ideas on what I need to change so cakePHP ignores all links that
> are blog/. I've tried a few htaccess settings, but none have
> worked. But then, from the sounds of it, other people have this
> working without any changes.
>
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Filter out Elements in an Array

2011-06-07 Thread Zaky Katalan-Ezra
CackPHP is actually PHP.
http://php.net/manual/en/function.array-filter.php

On Tue, Jun 7, 2011 at 7:55 PM, Schemer  wrote:

> Hi,
>
>  I am curious if there is an easy way to filter out values in an
> ordinary array with cake.  I know with fields you can just call find
> on them and set your conditions. But with non objects you cannot call
> find().
>
> I have an array of strings, and i want to filter out the values that
> are not like my desired "%term%". I know PHP has the array_filter()
> function.  But i am curious if there is anything as smart as cake's
> helper function.
>
> it would be nice to do something like this
>
> $new_array = array_filter($string_array, array('LIKE' => '%term%'));
>
> If anyone has solved a problem like this before, the help would be
> great!
>
> Thanks :)
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: What is the way to make Sub Pages

2011-06-01 Thread Zaky Katalan-Ezra
Is www.example.com/datas/data-titlewill
contain intro to only one article?

If www.example.com/datas/data-title/about-this is not too long fetch it hide
it and show it when the user click the 'more... ' link.

If its big, create two actions in the posts_controller. Summary ad Details.
Fetch the data for each of these actions .

On Wed, Jun 1, 2011 at 7:26 PM, Mr.Jayesh  wrote:

> Hi Mates,
>
> Am working on a project on which I require your advice.
> I am thinking to split a row data to couple of pages. For example:
>
> Main landing page for row data:
> www.example.com/datas/data-title (currently this page displays full
> data from particular row)
>
> What I want looking for is:
> www.example.com/datas/data-title (would contain intro texts)
> www.example.com/datas/data-title/about-this (some more data from same
> row.)
>
> So, would invite your advice and input on this.
>
> Thanks in Advance.
>
> Happy Baking
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: MySQL Enum Values

2011-06-01 Thread Zaky Katalan-Ezra
http://bakery.cakephp.org/articles/jzimmerman/2006/10/03/baked-enums

On Thu, Jun 2, 2011 at 5:36 AM, euromark  wrote:

> enums are not supported by cake
> at least not the way you describe i guess
>
> i usually use
>
> http://www.dereuromark.de/2010/06/24/static-enums-or-semihardcoded-attributes/
>
>
> On 1 Jun., 20:43, Schemer  wrote:
> > Hi all,
> >
> > In my view i want to display all the options of an enum typed field i
> > have in a MySQL database. I would like it to be a drop down menu.  But
> > im not sure how to extract all of the values the enum type contains.
> > Basically i want to do something like this
> > $values=$this->data['Model']['field']->find('list');
> >
> > But you cannot call find on a non object.
> >
> > Any help would be great thanks
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Am I Violating MVC?

2011-05-18 Thread Zaky Katalan-Ezra
I agree with the helper approach if its a helper array.
But there is not enough info about the array nature.
As you know maintaining the  code is also somthing you should think about so
if the nature of the array is pure "data nature" I'll advice even writing a
table and a model ...
Its easy to maintain an application when you know that all your data is in
the database for example and you don't need to start looking for data arrays
all over code.
Maybe putting the array in the appModel.

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: How to cake bake in Linux environment - Cakephp?

2011-05-18 Thread Zaky Katalan-Ezra
1. cd cake/console/

2. ./cake bake all

You need to see this:
Welcome to CakePHP v1.3.8 Console
---
App : app
Path: /home/zaky/Ubuntu One/initech/initech/valuebets/trunk/app
---
---
Bake All
---
Use Database Config: (default/test)
[default] >

What do you get?

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Get a CakePHP project work locally

2011-05-13 Thread Zaky Katalan-Ezra
Did you check apache log files for more details?

On Fri, May 13, 2011 at 12:27 PM, jaquim  wrote:

> Hi there,
>
> I was asked to make some changes to a CakePHP site that is already running
> online. I have downloaded all the CakePHP files, installed database and
> configureed database.php.
>
> Online, the site is running on Linux environment and site is working fine.
> Locally, is windows, xampp...
>
> If I access http://localhost:8081/project, where project is in
> c:\xampp\htdocs\project, the site is unformatted, no CSS and seems like some
> files are not loaded (a menu that should appear). However, if I access
> http://localhost/project/something, css are loaded but still having
> problems with some links. Seems like css are not loaded only on index (start
> page).
>
> I've installed a fresh cakephp site locally, and it seems to work
> properly! This one I've imported isn't. mod_rewrite is being loaded;
> htaccess files exists, though I've tried many configurations;
>
> What can I do more? I'm feeling a little desperate right now...
>
> Thanks in advance.
>
> Coiso
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
Regards,
Zaky Katalan-Ezra
QA Administrator
www.IGeneriX.com
Sites.IGeneriX.com
054-7762312

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakePHP App - server switch causing phpMySQL extreme query speed/results variants (but my query IS returning results as expected)

2011-05-11 Thread Zaky Katalan-Ezra
   )
> ),
> 'contain'=> array(
> 'PlanDetail' => array(
> 'fields'   => array(
> 'id',
> 'effective_date',
> 'expiration_date',
> 'active',
> 'name',
> 'plan_type_id',
> 'max_benefit',
> 'deductible',
> 'preventive',
> 'basic',
> 'major',
> 'ortho',
> 'application_url',
> 'company_id',
> 'plan_type_id',
> 'plan_detail_note_id'),
> 'Company'  => array('fields' => array(
> 'id',
> 'name',
> 'company_logo_url'
> )),
> 'PlanType' => array('fields' => array(
> 'id',
> 'name',
> 'description'
> ))),
> 'Age'=> array('fields' => array(
> 'id',
> 'name',
> )),
> 'Applicant'  => array('fields' => array(
> 'id',
> 'name',
> )),
> 'Zip'=> array('fields' => array(
> 'id',
> 'title')
> )
> ),
> 'limit'  => 100,
> 'order'  => array('monthly_cost' => 'ASC')
> );
> if ($Vision == 1) {
> array_push($options['conditions'], "dental_cost > 0");
> }
> $url = array('controller' => 'plans', 'action' => 'search');
> $this->paginate = $options;
> $this->set('searchdetails', array_merge($url, $searchdetails));
> $this->set('plans', $this->paginate('Plan'));
> $this->set('ApplicantAge', $ApplicantAge);
> $this->set('SpouseAge', $SpouseAge);
> $this->set('NumberChildren', $NumberChildren);
> $this->set('Vision', $Vision);
> $this->set('Zip', $Zip);
> if ($this->RequestHandler->isPost()) {
> $this->Session->write('search_form_sess', $this->data);
> $initial_url = $ApplicantAge . '/' . $SpouseAge . '/' .
> $NumberChildren . '/' . $Vision . '/' . $Zip;
> $this->redirect(array('action' => 'search', $initial_url));
> exit();
> }
> $this->layout = 'default';
> }
>
> *MySQL Server Data*
>
> ***Server #1***
> Server: Localhost via UNIX socket
> Server version: 5.0.92-community
> MySQL client version: 5.0.92
> PHP extension: mysql
> Protocol version: 10
> 
> ***Server #2***
> Server: Localhost via UNIX socket
> Server version: MySQL - 5.0.51a-24+lenny5-log
> MySQL client version: 5.0.51a
> PHP extensions: mysql
> Protocol version: 10
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
Regards,
Zaky Katalan-Ezra
QA Administrator
www.IGeneriX.com
Sites.IGeneriX.com
054-7762312

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: if/else vs. try/catch

2011-04-23 Thread Zaky Katalan-Ezra
Handling exceptions which can be errors.
You can use try catch as a if/else/case if you want to handle exceptions but
its not the right way to handle other code flow.
I admit its a bit tricky at first but its a good way of writing code.
Exception by default "bubble" up/back in the execution path and if you
didn't handle it at some point it will arise in the object that call that
point which its very powerful mechanism that you don't want to write
yourself.
try/catch also have a finally clause which promise you execution of code
even if you face a situation that you didn't think about in advance.
As a role of thumb in if/case you check values (if($user='zaky')) and it
try/catch you check processes (try{upload($file)}catch(notexistException
ne){}catch(tobigException et){}).

If you write your design documents with exceptions in mind it will also give
you some clue when do you need to use exception.
Example:
The feature:  Login page
The processes : the user enter email and password and hit enter
Result: the user redirect to his dashboard.
exceptions:
1. User not exist.
2. User inactive

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Insert instead of update - tried everything

2011-04-15 Thread Zaky Katalan-Ezra
Set the id field to auto increment

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: cake IDE

2011-04-14 Thread Zaky Katalan-Ezra
I think netbeans is the best.
What feature you are looking for?

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Cakephp,Auth with Oracle connectivity

2011-04-08 Thread Zaky Katalan-Ezra
http://procsharp.blogspot.com/2011/04/connect-oracle-with-cakephp.html

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Group Chat in cake

2011-04-06 Thread Zaky Katalan-Ezra
Did you try to google?
http://bakery.cakephp.org/articles/mattc/2007/02/03/ajax-chat-plugin
http://bakery.cakephp.org/articles/mattc/2008/10/26/ajax-chat-plugin-using-jquery
http://www.comm100.com/livechat/

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Rather silly question

2011-04-05 Thread Zaky Katalan-Ezra
$this->Auth->user(); return null if no user is logged on.

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: creating a non-component for my controller

2011-04-05 Thread Zaky Katalan-Ezra
What is the problem with require_once()?

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: please help me

2011-04-05 Thread Zaky Katalan-Ezra
1. I don't understand what do you mean by this:
"but because I happen to have my register and login forms on the same page".

2. just a guess. after saving the user get the last id and call login with
User and not RegUser
 if ($this->RegUser->save($this->data)) {
$regNewId = $this->RegUser->getLastInsertID();
$logdetails = $this->User->read(null,$regNewId);
$this->Auth->login($logdetails);
...
...

3. what this code for
if (!empty($this->data['RegUser']['password'])) {
$logdetails = $this->RegUser->read();
$this->data['RegUser']['password'] =
$this->Auth->password($this->data['RegUser']['password']);
}

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: cakephp multilingual + route

2011-04-04 Thread Zaky Katalan-Ezra
http://stackoverflow.com/questions/1794412/adding-a-prefix-to-every-url-in-cakephp

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Multilingual website - Entries in .po file

2011-03-30 Thread Zaky Katalan-Ezra
Use poedit
http://www.poedit.net/

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: syncing two databases

2011-03-29 Thread Zaky Katalan-Ezra
Do you mean Replication
?

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakeDC users plugin

2011-03-24 Thread Zaky Katalan-Ezra
I doesn't.
I downloaded  
Sample-Comments-Applicationand
used it as a reference

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakeDC users plugin

2011-03-24 Thread Zaky Katalan-Ezra
Did you put this in app_controller?

public function beforeFilter() {
$this->Auth->authorize = 'controller';
$this->Auth->fields = array('username' => 'email', 'password' =>
'passwd');
$this->Auth->loginAction = array('plugin' => 'users', 'controller'
=> 'users', 'action' => 'login', 'admin' => false);
$this->Auth->loginRedirect = '/';
$this->Auth->logoutRedirect = '/';
$this->Auth->authError = __('Sorry, but you need to login to access
this location.', true);
$this->Auth->loginError = __('Invalid e-mail / password
combination.  Please try again', true);
$this->Auth->autoRedirect = true;
$this->Auth->userModel = 'User';
$this->Auth->userScope = array(
'User.active' => 1);

if ($this->Auth->user()) {
$this->set('userData', $this->Auth->user());
$this->set('isAuthorized', ($this->Auth->user('id') != ''));
}

}

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakeDC users plugin

2011-03-23 Thread Zaky Katalan-Ezra
In a dozen other projects yes but not in this one.

Thank you

On Wed, Mar 23, 2011 at 7:44 PM, Sam Sherlock wrote:

> have you got
> line 88 (ish) -  Configure::write('Routing.prefixes', array('admin'));
> of app/config/core.php
>
> http://book.cakephp.org/view/950/Prefix-Routing
>  - S
>
>
>
>
> On 23 March 2011 17:33, Zaky Katalan-Ezra  wrote:
>
>> I get this message:
>> Missing Controller
>>
>> *Error: * *AdminController* could not be found.
>>
>> *Error: * Create the class *AdminController* below in file:
>> app/controllers/admin_controller.php
>>
>> > class AdminController extends AppController {
>>
>>  var $name = 'Admin';
>> }
>> ?>
>>
>>
>>
>


-- 
Regards,
Zaky Katalan-Ezra
QA Administrator
www.IGeneriX.com
Sites.IGeneriX.com
054-7762312

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakeDC users plugin

2011-03-23 Thread Zaky Katalan-Ezra
I get this message:
Missing Controller

*Error: * *AdminController* could not be found.

*Error: * Create the class *AdminController* below in file:
app/controllers/admin_controller.php



-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakeDC users plugin

2011-03-22 Thread Zaky Katalan-Ezra
Also in the users index view the edit and view buttons next to each users
pass the user id when view is looking for slug parameter and edit need no
parameter at all.
Looks like a sloppy work.
But still great plug-in with a bit of work it should be great.

I set my user is_admin=1 but after login I didn't redirected to admin
prefix.
I also didn't success in typing the admin prefix in the url.

My non admin url for index  view is http://localhost/sample/users/users/
where do I add the admin prefix?
I tried http://localhost/sample/admin/users/users/ and
http://localhost/sample/users/admin/users/
without success.

On Wed, Mar 23, 2011 at 12:42 AM, Sam Sherlock wrote:

> nope only migrations and schema
>
> https://github.com/CakeDC/users/tree/master/config/
>
> and to me it would make more sense if register mapped to add
>
>
> On 22 March 2011 22:35, gremlin  wrote:
>
>> Just a guess - is there a routes file in the plugin that you didn't
>> copy over to your config/routes.php? A route mapped from /users/add
>> to /users/register would make sense for this sort of error.
>>
>>
>> On Mar 22, 10:15 am, Ryan Schmidt  wrote:
>> > Perhaps I should be asking: is there a tutorial somewhere that will show
>> me how to use the users plugin -- starting from creating a new empty CakePHP
>> app ending with a working example? The readme says it's simple to use, but I
>> am not finding it so, and I don't seem to be the only one having trouble:
>> >
>> > http://www.webmastertalkforums.com/cakephp/18874-there-demo-app-anywh.
>> ..
>>
>> --
>> 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 For more options, visit this group
>> at http://groups.google.com/group/cake-php
>>
>
>  --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
Regards,
Zaky Katalan-Ezra
QA Administrator
www.IGeneriX.com
Sites.IGeneriX.com
054-7762312

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: login and register system

2011-03-22 Thread Zaky Katalan-Ezra
try cakedc users plug-in and you'll get much more.
https://github.com/CakeDC/users

On Mon, Mar 21, 2011 at 5:06 PM, Robert Bodley wrote:

> hi,
>
> I just started learning php and would like to know if anyone would
> like or would help me build a login and register system
>
> I would like the features to be:
> •login, log out, register
> • on the register page I would like a name, email, password, date of
> birth, school, relationship status( in relation, complicated, open )
>
> •And have email validation
>
>
> And once the person has logged in show all the stuff in the register
> form(name, email, date of birth, school, relationship status)
>
> I would be very very greatful if you would help!!
>
> Thanks
> Rob
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
Regards,
Zaky Katalan-Ezra
QA Administrator
www.IGeneriX.com
Sites.IGeneriX.com
054-7762312

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: problem checking if user is logged in from any controller other than users

2011-03-15 Thread Zaky Katalan-Ezra
in your app_controller beforeFilter add this line:

$this->set('loginuser',$this->Auth->user());

In any view or layout you can check for $loginuser.

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Cascade Cake vs DB

2011-03-15 Thread Zaky Katalan-Ezra
I try to follow these rules of thumb
1. If the database know how to do it do it in the database.
2. The less code you write the better.

Writing functional processes in the database give you more option to test
your logic.
If it work in the database and not in the application you know where you
need to put all your efforts.

Although I must admit I stopped setting foreign keys since cake understand
the reference automatically throw convention.

More important question is whether to use stored procedure instead of using
application code?
In this case also I prefer using the database features, in many cases it
save some transactions.

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Lock a page that is being edited by another user

2011-03-14 Thread Zaky Katalan-Ezra
I think you need some AJAX to ping the server with the post_id when someone
open the post for edit.
You need to ping every X second.
When someone else trying to open the post for edit you check the ping table
and if the post is in edit mode you can disable the last user edit button.
you can even tell him how is editing the post.
You need to check the ping time stamp and if it didn't updated for X*2
second you should delete the row from the ping table.

Never did it myself and I am sure more issues will popup but it should work.

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Readonly field

2011-03-11 Thread Zaky Katalan-Ezra
http://www.htmlcodetutorial.com/forms/_INPUT_DISABLED.html

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakePHP + Oracle : query other schema

2011-03-07 Thread Zaky Katalan-Ezra
Did you try to create a view for the synoname?

On Mon, Mar 7, 2011 at 9:53 PM, guix69  wrote:

> Database is the same, only the schema is different.
>
> My database.php contains the settings to connect to SCHEMA1 but I
> would like to make a model to query data from SCHEMA2
>
> I tried using a synonym (inside SCHEMA1, pointing to the desired table
> inside SCHEMA2) but it looks like the synonym is invisible to cake.
>
> --
>  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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Database question

2011-03-07 Thread Zaky Katalan-Ezra
Even though updateAll is atomic the problem exist.
User A and user B fetch the data at 10:00 and have Post.view_count = 9
User A click the submit button at 10:02 and user B at 10:03.
They both update view_count = 10

On Mon, Mar 7, 2011 at 8:50 PM, Ryan Schmidt wrote:

> On Mar 7, 2011, at 12:34, Zaky Katalan-Ezra wrote:
> > On Mon, Mar 7, 2011 at 1:43 PM, Krissy Masters wrote:
> >> Since only 1 field can be auto-inc, that’s not really the best solution.
> >>
> >> I would suggest to update 1 field where CONDITION
> >>
> >> In the view function add in something like:
> >>
> >> $this->Model->updateAll( array( 'Post.view_count' => 'Post.view_count +
> 1'
> >> ), array( 'Post.id' => $post['Post']['id'] ) );
> >
> > This solution raise another issue.
> > If two users get the data at the same time but update the data one after
> another you end up with equal value in two rows.
>
> I don't think that problem exists here. Using updateAll() should generate a
> single UPDATE SQL statement, which should be atomic.
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakePHP + Oracle : query other schema

2011-03-07 Thread Zaky Katalan-Ezra
Use database 
link

On Mon, Mar 7, 2011 at 5:39 PM, guix69  wrote:

> Hello,
>
> My app is configured via database.php to query a specific oracle
> schema. Is there a way to define a model for data stored in another
> schema? (or is there no other way than querying directly in SQL?)
>
> Thanks
> G.
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Database question

2011-03-07 Thread Zaky Katalan-Ezra
This solution raise another issue.
If two users get the data at the same time but update the data one after
another you end up with equal value in two rows.
Solutions:
1. You can check the value before update.
2. You can set unique index wait for error and handle it.
3. You can use database trigger. (My preferred solution )


On Mon, Mar 7, 2011 at 1:43 PM, Krissy Masters
wrote:

> Since only 1 field can be auto-inc, that’s not really the best solution.
>
> I would suggest to update 1 field where CONDITION
>
> In the view function add in something like:
>
> $this->Model->updateAll( array( 'Post.view_count' => 'Post.view_count + 1'
> ), array( 'Post.id' => $post['Post']['id'] ) );
>
> K
>
> From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On
> Behalf
> Of Zaky Katalan-Ezra
> Sent: Monday, March 07, 2011 5:04 AM
> To: cake-php@googlegroups.com
> Cc: Zachary Stenger
> Subject: Re: Database question
>
> Use some GUI to manage your database.
> Mysql workbench is a good choice.
>
> Check the AI column in Alter table form.
> --
> 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 For more options, visit this group
> at
> http://groups.google.com/group/cake-php
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
Regards,
Zaky Katalan-Ezra
QA Administrator
www.IGeneriX.com
Sites.IGeneriX.com
054-7762312

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Database question

2011-03-07 Thread Zaky Katalan-Ezra
Use some GUI to manage your database.
Mysql workbench  is a good choice.

Check the AI column in Alter table form.

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: how to redirect and let the server do some lengthy job in the background?

2011-02-27 Thread Zaky Katalan-Ezra
You have the ff log to check if every thing is ok and the progress.
You can create PID file to check if the process ended.
Form my experience when dealing with files its better to inspect the
filesystem in order to know what you have.
The information from the database may conflict with the filesystem because
of a bug.
Way save the information twice?, the filesystem should be treated as a data
source also.

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: how to redirect and let the server do some lengthy job in the background?

2011-02-27 Thread Zaky Katalan-Ezra
On a Linux machine  create a bash file like this
-
#!/bin/sh

ffmpeg -i $1 -r $2 $3 &

-
The ampersand at the end tell the bash to run in the background.
the $n is parameters.

>From php call it like  this:
$command = mybashpath.sh inputfile.mpg 24 outputfile.flv;
*exec* ( $command );

As you can see I called the bash file with three parameters.

If you set a log for the ffmpeg command you will be able to check the
execution status and show it in the index view


I am sure there is a way to do it with Windows also.

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Conneect with Oracle

2011-02-22 Thread Zaky Katalan-Ezra
Linux? windows?
Do you see OCI in phpinfo()?

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Conneect with Oracle

2011-02-19 Thread Zaky Katalan-Ezra
This one should work:

var $default = array('driver' => 'oracle',
 'connect' => 'oci',
'persistent' => false,
'host' => 'localhost',
'port'=>1521,
'login' => 'postsUser',
'password' => 'pass',
'schema'=>'post', //The Oracle slang for what mySql call
database.
'database' => 'localhost:1521/xe', //All your application have
this same line for localhost schemas
'prefix' => ''
 );

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Adding fields to a form dynamically - a complex case

2011-02-15 Thread Zaky Katalan-Ezra
So the librarian need to type only two values, right?
Customer number (magnetic card), and books numbers (barcode).
If so you can just use a text box with all the books numbers with comma
separated like an email send to list.
Do the rest in the database/model.

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: oracle 10g connection with cakephp 1.3

2011-02-15 Thread Zaky Katalan-Ezra
I did it this way:
Install xammp
1.enable "extension=php_oci8.dll" in php.ini


2.Set database.php

var $default = array('driver' => 'oracle',
 'connect' => 'oci',
'persistent' => false,
'host' => 'localhost',
'port'=>1521,
'login' => 'user',
'password' => 'pass',
'schema'=>'mydb',
'database' => 'localhost:1521/xe',
'prefix' => ''
 );

I fail to bake anything so I baked with mysql and then change to Oracle
connection

On Tue, Feb 15, 2011 at 11:13 AM, Tosun or Shadin  wrote:

> Window XP.
>
> On 15 February 2011 12:24, Zaky Katalan-Ezra  wrote:
>
>> Windows/Linux? distribution?
>>
>> --
>> 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 For more options, visit this group
>> at http://groups.google.com/group/cake-php
>>
>
>
>
> --
> Best Reguards..
> Taufiqul Islam
> Assistant Programmer
> Investment Corporation of Bangladesh
> 8-Rajuk Avenue, BDBL Bhaban, Dhaka-1000
> 13th floor (Computer Division), System Analysis Department
> E-mail : tosu...@gmail.com
> URL : www.icb.gov.bd
>
> |A CMMi Level 3 Certified Company|
>
> --
> 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 For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
Regards,
Zaky Katalan-Ezra
QA Administrator
www.IGeneriX.com
Sites.IGeneriX.com
054-7762312

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: oracle 10g connection with cakephp 1.3

2011-02-14 Thread Zaky Katalan-Ezra
Windows/Linux? distribution?

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: New to cake and need advice

2011-01-27 Thread Zaky Katalan-Ezra
Go for it
I made the transition after 10 years in C#.
I guess you want to do web applications so you have to learn new things any
way.
I think php and cakephp in particular is the best thing to start with.

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Connecting to a remote database via SSH

2011-01-27 Thread Zaky Katalan-Ezra
There is no need of tunnelling in order to connect mysql workbench to remote
database via SSH

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Need advice for custom ACL

2011-01-27 Thread Zaky Katalan-Ezra
In that case my honest advice to you is to revise your design.

"If it's not simple it's should simply not" (In Hebrew it sounds better)

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Need advice for custom ACL

2011-01-26 Thread Zaky Katalan-Ezra
>not all of those "authorizations" are referred to a specific
>controller's action so cake's built-in ACL isn't very useful.

Then what they refer to?

It looks like you need to create an engine to create your views on the fly.

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Connecting to a remote database via SSH

2011-01-25 Thread Zaky Katalan-Ezra
edit /etc/ssh/sshd_config on your local machine
Add:

AllowTcpForwarding yes
GatewayPorts yes

restart sshd

Edit my.cnf on remote machine.
Uncomment the following line.
bind-address   = 127.0.0.1
restart mysql

On you local machine run the following command
ssh -i e-keypair -f remoteu...@remote.com -N -L :localhost:3306
If you are not using ssh key you will be prompt for remote user assword

Edit database.php

var $default = array(
'driver' => 'mysqli',
'persistent' => false,
'host' => '127.0.0.1',
'port'=>,
'login' => 'user',
'password' => 'pass',
'database' => 'schema',
'prefix' => '',



On Wed, Jan 26, 2011 at 8:24 AM, Jeremy Burns | Class Outfit <
jeremybu...@classoutfit.com> wrote:

> I don't think I am explaining myself clearly. I am connecting to the
> database fine (using Sequel Pro). That is not my problem.
>
> I want to get my local instance of a CakePHP application to connect to a
> remote database via SSH, so need to have the right configuration in
> database.php. That's where I need the guidance.
>
>
> Jeremy Burns
> *Class Outfit*
> *
> *
> jeremybu...@classoutfit.com 
> http://www.classoutfit.com
>
> On 26 Jan 2011, at 06:20, Zaky Katalan-Ezra wrote:
>
> 1. You need port 22 and 3306 to be open on the remote server
> 2. Install mysql workbench
> 3. In the new connection form set the connection method to tcp over ssh.
> 4. If you are using terminal and not GUI use ssh tunnel.
>
> And you may find more info here:
> http://forums.mysql.com/read.php?30,249779,249779
>
> On Wed, Jan 26, 2011 at 7:21 AM, Jeremy Burns | Class Outfit <
> jeremybu...@classoutfit.com> wrote:
>
>> Thanks - I was hoping that someone could suggest a database.php setting
>> that would make the connection.
>>
>> Jeremy Burns
>> Class Outfit
>>
>> jeremybu...@classoutfit.com
>> http://www.classoutfit.com
>>
>> On 26 Jan 2011, at 05:01, bdwilton wrote:
>>
>> > Not sure if this is exactly what you had in mind, but...
>> >
>> > If you have a local work server with a local router which you can open
>> up a port on you can use a SSH tunnel on your local work server to forward
>> that port to a remote VPN or remote server which has its ports locked down
>> but accessible to your IP.  This opens up the port through your router to be
>> accessed externally but through SSH to the remote server.
>> >
>> > Just look up SSH Tunnel.
>> >
>> > Brett Wilton
>> > http://wiltonsoftware.com
>> >
>> > On 26/01/2011 8:32 a.m., Jeremy Burns wrote:
>> >> Does anyone have any ideas for how to connect to a remote database via
>> SSH? It's a development thing so that people working remotely can develop
>> against the same database hosted on our virtual server. --
>> >> 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.comFor
>> >>  more options, visit this group at
>> http://groups.google.com/group/cake-php
>> >
>> > --
>> > 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.comFor
>> >  more options, visit this group at
>> http://groups.google.com/group/cake-php
>>
>> --
>> 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.comFor
>>  more options, visit this group at
>> http://groups.google.com/group/cake-php
>>
>
>
>
> --
> Regards,
> Zaky Katalan-Ezra
> QA Administrator
> www.IGeneriX.com
> Sites.IGeneriX.com
> 054-7762312
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check ou

Re: Connecting to a remote database via SSH

2011-01-25 Thread Zaky Katalan-Ezra
1. You need port 22 and 3306 to be open on the remote server
2. Install mysql workbench
3. In the new connection form set the connection method to tcp over ssh.
4. If you are using terminal and not GUI use ssh tunnel.

And you may find more info here:
http://forums.mysql.com/read.php?30,249779,249779

On Wed, Jan 26, 2011 at 7:21 AM, Jeremy Burns | Class Outfit <
jeremybu...@classoutfit.com> wrote:

> Thanks - I was hoping that someone could suggest a database.php setting
> that would make the connection.
>
> Jeremy Burns
> Class Outfit
>
> jeremybu...@classoutfit.com
> http://www.classoutfit.com
>
> On 26 Jan 2011, at 05:01, bdwilton wrote:
>
> > Not sure if this is exactly what you had in mind, but...
> >
> > If you have a local work server with a local router which you can open up
> a port on you can use a SSH tunnel on your local work server to forward that
> port to a remote VPN or remote server which has its ports locked down but
> accessible to your IP.  This opens up the port through your router to be
> accessed externally but through SSH to the remote server.
> >
> > Just look up SSH Tunnel.
> >
> > Brett Wilton
> > http://wiltonsoftware.com
> >
> > On 26/01/2011 8:32 a.m., Jeremy Burns wrote:
> >> Does anyone have any ideas for how to connect to a remote database via
> SSH? It's a development thing so that people working remotely can develop
> against the same database hosted on our virtual server. --
> >> 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.comFor
> >>  more options, visit this group at
> http://groups.google.com/group/cake-php
> >
> > --
> > 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.comFor
> >  more options, visit this group at
> http://groups.google.com/group/cake-php
>
> --
> 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.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php
>



-- 
Regards,
Zaky Katalan-Ezra
QA Administrator
www.IGeneriX.com
Sites.IGeneriX.com
054-7762312

-- 
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 For more options, visit this group at 
http://groups.google.com/group/cake-php


  1   2   3   >