Alejandro:
This might come in handy:
http://api.cakephp.org/class/request-handler-component#method-RequestHandlerComponentisMobile
Regards,
Alfredo
On Fri, Apr 10, 2009 at 1:44 PM, wrote:
>
> Anyone with experience on WAP aplications based on Cakephp framework? any
> hints,tips,docs or rec
Perhaps one way to do it. Take a look at:
http://api.cakephp.org/class/auth-component#method-AuthComponentisAuthorized
Property: authorize
Method: isAuthorized
Regards,
Alfredo
On Mon, Apr 6, 2009 at 3:36 PM, Mauricio Tellez
wrote:
> Hi, I'm building a cake app that need to authentify agai
How are you defining you layout for the methods?
Do you have ?
$this->layout = 'ajax';
Regards,
Alfredo
On Fri, Apr 3, 2009 at 8:30 PM, Aurelius wrote:
>
> I already tried making the Blogs/edit/ Output static (in the edit.ctp-
> file is only "I'm working"), the BlogsController Method is as w
En el API yo solo veo charset.
http://api.cakephp.org/class/html-helper#method-HtmlHelpercharset
Aparentemente estas llamando el metodo equivocado.
Saludos,
Alfredo
On Wed, Apr 1, 2009 at 3:44 PM, jotaBKM wrote:
>
> amigos me sale el siguiente error
>
> Warning (512): Method HtmlHelper::char
Marcus:
How do the users consume/utilize the categories? Are they presented
with a drop down menu from which they can select categories? How does
the user sees the category?
Assuming the user is presented with for example a combo box or
something along those lines from which they can select, you
Yep, even better.
Tx Martin.
On Mon, Mar 30, 2009 at 2:54 PM, Martin Westin
wrote:
>
> I think this is what you are looking for
>
> http://bakery.cakephp.org/articles/view/load-balancing-and-mysql-master-and-slaves-2
>
>
>
>
> On Mar 30, 6:28 pm, Alfredo Quiroga-
Pippo:
I've never done this or even thought about how to do it; so there
might be a better way to accomplish what you want. Perhaps what I am
about to tell you might not be a valid solution; but one thing that
comes to mind is the following:
Assuming that what you want is to read from one DB and
Stu:
If you can, just set your links to be standard links that send get
requests, then the re-direction should work fine using php(cakephp).
If it's imperative for you to have the request sent to the backend as
an ajax request, then you'll have to setup a callback for each of the
ajax requests an
rection you are likely handling that in the php side of things
now.
Hope that helps.
Regards,
Alfredo
On Thu, Mar 26, 2009 at 10:02 AM, Alfredo Quiroga-Villamil
wrote:
> Stu:
>
> There is one thing that I forgot to ask you. Can you describe exactly
> what you want to happen when you cl
Stu:
There is one thing that I forgot to ask you. Can you describe exactly
what you want to happen when you click on one of the links for
example.
I am thinking you have this, keep me honest here:
Menu
Link-1
Link-2
Link-3
Clicking Link-X will send an AJAX request to the backend. Is that corre
Ummm, This seems like a trivial question but have you checked and made
sure that the ajax helper is added to the controller or all your
controllers by adding it to AppController?
On Wed, Mar 25, 2009 at 1:24 PM, Stu wrote:
>
> Thx for the reply Alfredo
>
> I checked it out and his core config
Def. please post your findings once you figure it out. I'm really puzzled now.
Regards,
Alfredo
On Wed, Mar 25, 2009 at 2:54 PM, Stu wrote:
>
> Oh do I wish it was only that, hehehe.
>
> Yeah, I'm starting to think that some routing code is overriding the
> ajaxHelper behavior. Gonna have to
This usually goes hand-in-hand with some privacy. In most cases you
will only want users who are buddies to be able to send messages to
each other. In other words, you would need a buddy system, which will
complicate things a bit more but would make your application a little
bit more robust.
If A
Typically ajax related issues of that nature tend to be related to
your security level. Check your cake config file and make sure your
security level is not set to high.
Regards,
Alfredo
On Wed, Mar 25, 2009 at 11:42 AM, Stu wrote:
>
> Hi,
>
> Ive recently moved my application to our Linux dev
Under the js directory place extjs-xx. I think that's how you have it now.
In your layout:
link('ext-2.2/adapter/ext/ext-base'); ?>
link('ext-2.2/ext-all-debug'); ?>
link('ext-2.2/ext-all'); ?>
Regards,
Alfredo
On Tue, Mar 24, 2009 at 11:23 AM, wilderland wrote:
>
>
Same here, I also used Firebug => Inspect Element => Net and all the
images seem to be small with small loading times, all in the range of
milliseconds. You can also try catching the images to speed things up
assuming you are not doing it already; but for the most part things
looked good like Mile
/CakePHP-tutorial-no-4-from-IBM
Regards,
Alfredo
On Thu, Mar 19, 2009 at 10:31 AM, byqsri wrote:
>
> Ok thanks.
> I save on DB my session but then how can I do decide which is the
> right session in the external app?
>
> On Mar 19, 3:27 pm, Alfredo Quiroga-Villamil
> wrote:
One way that might help you accomplish this is by storing them in a DB.
See: http://book.cakephp.org/view/173/Sessions
Regards,
Alfredo
On Thu, Mar 19, 2009 at 8:07 AM, marco.rizze...@gmail.com
wrote:
>
> My question is this?
> How can I sharing CAKEPHP Session with external app on a differen
Really good stuff. I really like the approach. It seems clean and concise.
Alfredo
On Wed, Mar 18, 2009 at 11:10 AM, lloydhome wrote:
>
> Considering all of the new features in CakePHP 1.2, I have rewritten
> my Recursive Query support code to be completely encapsulated in a
> model Behavior.
Ummm, not that I know of.
Regards,
Alfredo
On Tue, Mar 17, 2009 at 2:38 PM, Daffy wrote:
>
> Thanks for your swift response. I'm still relatively new to Cake so
> this might be a stupid question, but, is it possible to tell CakePHP
> to use a "medium" security for one section of the web site,
>From core.php
"CakePHP session IDs are also regenerated between requests if
'Security.level' is set to 'high'."
That's expected behavior. Setting it to medium is what I've done in my
app since I make heavy use of concurrent ajax calls.
Regards,
Alfredo
On Tue, Mar 17, 2009 at 2:03 PM, Daffy
nstructor, so now it works, but still interested to
> see if there's an alternative solution.
>
> On Mar 16, 1:50 pm, Alfredo Quiroga-Villamil
> wrote:
>> I haven't tried this; but try it and see what happens.
>>
>> 1- Create app/models/app_model.php
>> 2
I haven't tried this; but try it and see what happens.
1- Create app/models/app_model.php
2- In there you can have
class AppModel extends Model {
protected $sYourPropery = 'property';
} // End of AppModel{}
All models that extend AppModel should now have access to
$sYourProp
The first thing needed I think is to re-adjust the function a bit.
Although not mandatory, it should be something like the function
depicted below for a public method that will process only ajax
requests:
function your_function() {
$this->layout = 'ajax';
if ( $this->RequestHandler->isAja
I believe one way to achieve this is by using:
$this->render()
http://api.cakephp.org/class/app-controller#method-AppControllerrender
from your controller and render the view you want. This would likely
be based on certain conditions based on your previous email. So you
would end up with a case
Ummm, try setting your layout to be of ajax type and see how it goes.
function toto() {
$this->layout = 'ajax';
$this->render( null, '/xml/default', null );
}
Regards,
Alfredo
On Fri, Mar 6, 2009 at 11:24 AM, Aktarus wrote:
>
> Hello,
>
> I have an Ajax that requests XML feed to one o
on: failed
> Status: 553 5.7.1
> from=grbounce-j2ddrguaaaboxexadd8yj4w11_qw7men=iraj23=lycos@googlegroups.com:
> To=iraj23: Mail is denied, message has been blocked by user's personal
> blacklist
>
>
> -- Forwarded message --
> From: Alfredo Quirog
Btw, I think I might have missed a digit in that regex:
/\w+-\w+-\w+-\d+-\+-\d+-\w+-\w+/
Regards,
Alfredo
On Thu, Mar 5, 2009 at 4:18 PM, Alfredo Quiroga-Villamil
wrote:
> The code below is using perl; but take a look at the regex to match
> the given string. I didn't test this
The code below is using perl; but take a look at the regex to match
the given string. I didn't test this a whole lot; so double check it
and run a few tests to see if it does what you want.
use strict;
use warnings;
my $string = 'asus-eee-pc-900-+-2-gb-ram';
if ( $string =~ /\w+-\w+-\w+-\d+-\+
PM, Alfredo Quiroga-Villamil
> wrote:
>>
>> Brian:
>>
>> I am hoping you are simply joking here or having a bad day or
>> something. If you are not, that's not a cool way to reply to a valid
>> question in my opinion.
>>
>
> Alfredo, did you fol
Brian:
I am hoping you are simply joking here or having a bad day or
something. If you are not, that's not a cool way to reply to a valid
question in my opinion.
Davide, I am posting here the email I had previously sent you.
==
PHP (cakephp) o
I believe you can just do:
var $uses = array(
'Model1'
,'Model2'
);
or use App::Import, then instantiate the model you want. You might
also have to make sure that in the Model you specify var $useTable =
null if it's not associated with with a table.
Regards,
Alfredo
On Sun, Feb 22, 20
pecific
> text that will indicate that you're logged out. Then maybe you can
> have an AJAX callback analyze the response and redirect if necessary.
> That seems a little hackish so I'm wondering if there's a better way.
>
> Thanks,
> Jon
>
> On Feb 20, 6:26 pm, A
Thanks Miles.
I finally had a little bit of time to devote to this and brainstorm
for a few minutes. The issue is a bit more involved than what I had
originally thought. I didn't throughly think about my environment and
current implementation. All my requests are being sent via ajax. This
changes
hack my way around this with a couple of
>> > lines of code in my AppController. I am trying to understand why Auth
>> > is just not simply re-directing after the session expires. Auth does
>> > the right thing if I am not logged in, I get re-directed or sent to
>&
I am sure there is a way to get this done, just not sure if I am
missing something. Further details below:
Issue:
=
Need to re-direct after session has expired or cleared.
Description:
=
I am currently only using the Auth component to handle my
authentication. No ACL for now. I
An approach to this could also be setting up a trigger in your
database. This way you wouldn't need any code. You would let mysql for
example do the work for you. Then you can use a neat little trick in
mysql and call a "group by with rollup" and get the grouping plus the
count.
I hope that helps
content
> div was missing the style. So, #flash_msg was being positioned
> incorrectly.
>
> I fixed it by adjusting that first line with:
>
> $('#flash_msg').hide().appendTo('#content').center({top: 10})
>
> So, your idea is definitely something that peop
might just read them,
not sure how it was implemented; but perhaps they are just looking for
them and will skip anything in between giving you what you want.
Regards,
Alfredo
On Sun, Feb 15, 2009 at 8:57 PM, brian wrote:
>
> Then I would never see what's inside.
>
> On Sun, Feb 15,
I wonder what will happen if you wrap the cake:nocache tags with a comment
Have you tried that?
Regards,
Alfredo
On Sun, Feb 15, 2009 at 8:35 PM, brian wrote:
>
> I have the following in my main layout:
>
>
>check('Message.flash'))
> $session->flash(); ?>
>
>
>
> Because it
eed it in the future and if this is even the most recommended
approach for this kind of situations.
Thanks in advance,
Alfredo
On Tue, Feb 10, 2009 at 11:38 PM, Alfredo Quiroga-Villamil
wrote:
> This should be simple, yet for some reason can't find how to do it.
>
> I need to
This should be simple, yet for some reason can't find how to do it.
I need to render XML.
What is the correct way to accomplish this?
Thanks in advance,
Alfredo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Ca
thod rather than
> find('all', ...) like you did, since you limit the result to one in
> your query anyway. Not much different, they both achieve the same
> thing, but it may be more readable in the code itself.
>
>
> On Feb 8, 5:06 pm, Alfredo Quiroga-Villamil wro
I am not sure if cakephp supports this; but you usually would have to
find a way to recognize mobile headers. There might already be a
library out there for this. Last time I worked on this was using
modperl and we had all the headers in the DB allowing us to recognize
the device.
See this below
fredo
On Sun, Feb 8, 2009 at 2:32 PM, brian wrote:
>
> On Sun, Feb 8, 2009 at 10:47 AM, Alfredo Quiroga-Villamil
> wrote:
>>
>> I have the following query:
>>
>> ===
>>$aParams = array(
>>
Niiice, appreciate the response to the bonus question.
Just trying to find out the answers now for Questions 1 and 2.
Appreciate it.
Alfredo
On Sun, Feb 8, 2009 at 12:39 PM, mscdex wrote:
>
> On Feb 8, 10:47 am, Alfredo Quiroga-Villamil
> wrote:
>> Rails has a respond_to met
Marcus:
If I understood the question correctly what you are looking for is the
following:
If a user goes to make an entry into the table you've created, and the
column1-column2 combination already exists for that particular user
then you want to stop them from being able to re-enter it.
If that
2009 at 10:47 AM, Alfredo Quiroga-Villamil
wrote:
> I have the following query:
>
> ===
>$aParams = array(
>'fields' => array(
>"ifnull(Cc
I have the following query:
===
$aParams = array(
'fields' => array(
"ifnull(CcCall.destination, 'Total')as destination"
,'sec_to_time(sum(CcCall.sessiontime)) as duration'
Do you have var $helpers = array('Html') in your controller or AppController ?
Regards,
Alfredo
On Sat, Feb 7, 2009 at 9:41 AM, jim wrote:
>
> This is not showing as a link in my browser:
>
> link($post['Post']['title'], "/posts/view/".$post
> ['Post']['id']); ?>
>
>
> Just looks like this:
>
gkc:
If I understood your question correctly what you want is something like this???
$aResult = $this->Model->find('all', array('limit' => 200));
or something along those lines, specifying the field that you want, or
the ones that you would like excluded.
Regards,
Alfredo
On Wed, Feb 4, 200
I've ran into similar issues with IE in the past, check your json and
make sure there are no trailing commas.
Regards,
Alfredo
On Thu, Feb 5, 2009 at 5:10 AM, yasa83...@gmail.com
wrote:
>
> Hi BrendonKoz,
>
> I am getting the chart in firefox. But when I am trying the same in
> IE. I am getti
Glad you figured it out Andrea, way to go.
Regards,
Alfredo
On Wed, Feb 4, 2009 at 2:30 PM, Andrea Cardinale wrote:
>
> Today I was on the subway thinking to everything but Cake when I
> understood what I was doing wrong and I can't believe it-.-
> After completing the ACL tutorial and when re
Re-sending this.
On Tue, Feb 3, 2009 at 8:30 PM, Alfredo Quiroga-Villamil
wrote:
> Andrea:
>
> Have you tried to remove the acl ? Remove the aros/acos tables for now
> and just take it one step at a time again.
>
> Auth should not be the problem, you likely have something
Andrea:
Check and make sure you don't have caching enabled. If you do, clean
up the /tmp/ directory and try again. This sometimes when in dev. mode
causes problems.
Regards,
Alfredo
On Sat, Jan 31, 2009 at 5:18 AM, Andrea Cardinale wrote:
>
> Hi guys, I'm getting quite crazy with the auth co
hat I mean). Perhaps it all works
> in a more civilized fashion for cellphone/WAP-style applications.
> Anyway, let me know if you ever come up with some sort of way to do
> single-key accesskeys.
> Thanks again.
> --Bill
> On Mon, Jan 26, 2009 at 9:50 PM, Alfredo Quiroga-Villamil
I think I've figured out what was happening.
If Security.Level is set to high, then cakephp will re-generate the
session id for every request. This seems to cause issues when you have
an application sending multiple ajax requests; for example during
heavy ajax gui initialization. By setting it to
57 matches
Mail list logo