Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 14:51
    adrix71 opened #21
  • Dec 10 20:38

    nicksagona on 3.5.0

    (compare)

  • Dec 10 20:36

    nicksagona on 3.5.0

    (compare)

  • Dec 10 20:35

    nicksagona on master

    Update composer (compare)

  • Dec 10 20:35

    nicksagona on v3-dev

    Update composer (compare)

  • Dec 10 19:54

    nicksagona on 5.0.0

    (compare)

  • Dec 10 19:54

    nicksagona on 5.0.0

    (compare)

  • Dec 10 19:54

    nicksagona on v5-dev

    Update composer (compare)

  • Dec 10 19:54

    nicksagona on master

    Update composer (compare)

  • Dec 10 19:28

    nicksagona on 5.0.0

    (compare)

  • Dec 10 19:17

    nicksagona on master

    Start working on refactor Work on refactor Work on refactor and 47 more (compare)

  • Dec 10 19:16

    nicksagona on v5-dev

    Finish unit tests (compare)

  • Dec 10 05:56

    nicksagona on v5-dev

    Work on relationships unit tests (compare)

  • Dec 10 04:44

    nicksagona on v5-dev

    Refactor DB adapters to have a … (compare)

  • Dec 09 22:45

    nicksagona on v5-dev

    Work on unit tests (compare)

  • Dec 09 21:26

    nicksagona on v5-dev

    Work on unit tests (compare)

  • Dec 09 19:26

    nicksagona on v5-dev

    Work on unit tests (compare)

  • Dec 07 20:46

    nicksagona on v5-dev

    Work on unit tests Work on unit tests (compare)

  • Dec 07 18:11

    nicksagona on v5-dev

    Work on unit tests (compare)

  • Dec 06 23:32

    nicksagona on v5-dev

    Work on unit tests (compare)

Nick Sagona
@nicksagona
renders HTML, validates fields, scrubs/filters data, etc etc
Adriano Giovannini
@adrix71
I got it
Adriano Giovannini
@adrix71
Good afternoon
Adriano Giovannini
@adrix71
Goo dafternoon
MOHD AFEEF
@afeef1915_twitter
im new in pops framwork can anyone give tutorial how to save data in mysql
i have understanding of symfony2,3 and laravel
Nick Sagona
@nicksagona
You can check out the docs here: http://docs.popphp.org/
Nick Sagona
@nicksagona
iamszt
@iamszt
i want to acheive the following
i have a predefined pdf file i want to add watermark or page number to each page
DrewM
@AndrewM
Curious if this has been addressed - I haven't been able to find any documentation or comments about it. When I get a record and modify, then ->save() it doesn't seem to trigger the 'ON UPDATE CURRENT_TIMESTAMP' for the database column....
It works fine with a normal db->query() though.
Nick Sagona
@nicksagona
@AndrewM sorry for the delay in getting back to you on this - it's been a busy past couple of months. I just pushed a patch up and cut a release of 4.5.7 for pop-db. It fixes the problem you brought up and allows save() (update) calls to respect the "ON UPDATE" definitions. Check it out and let me know (explanation is in the release here: https://github.com/popphp/pop-db/releases/tag/4.5.7)
Stas
@SedovSG

Hi, everybody. Can who met with problem? I use the following config of routes:

$app = new Vendor\Application($autoloader, include __DIR__ . '/app/config/app.web.php');
$app->run();

// app.web.php
return [
  'routes'      => include __DIR__ . '/routes.php'
]

// routes
return [
  '/' => [
    'controller' => 'Vendor\Controller\AuthController',
    'action'     => 'index'
  ],
  '/:controller[/:action][/:param*]' => [
    'prefix' => 'Vendor\Controller\\'
  ],
  '*' => [
    'controller' => 'Vendor\Controller\ErrorController',
    'action'     => 'index'
  ]
];

Go uri - controller/action/:id/type/json

So, not whim array, but only the first segment - (integer) ID

In the previous version I fixed this in the Route file.php? line 191, method addDispatchParams, adding a check on the parameter array and array_merge.

Now I don't quite know where to dig.

Nick Sagona
@nicksagona
@SedovSG - hello - I'm just getting to work here this morning, but I'll try and help you out later today if I can find some time.
Stas
@SedovSG
@nicksagona Hello, no problem, thanks.
Nick Sagona
@nicksagona
@SedovSG so if I'm understanding what you're asking about, you can get a dynamic array of segment arguments dynamically passed into the controller action. However, there's one of two ways to go about it
one way, if you know the number of arguments is always going to be, say at most 3 arguments, you could do this:
assume an app wired up like this:
    $app = new Pop\Application([
        'routes' => [
            '/' => [
                'controller' => 'MyApp\Controller\IndexController',
                'action'     => 'index'
            ],
            '/:controller[/:action][/:param*]' => [
                'prefix' => 'MyApp\Controller\\'
            ],
            '*' => [
                'controller' => 'MyApp\Controller\IndexController',
                'action'     => 'error'
            ]
        ]
    ]);

    $app->run();
then a Users controller like this:
    class UsersController extends \Pop\Controller\AbstractController
    {

        public function index()
        {
            echo 'Users Index!' . PHP_EOL;
        }

        public function edit($id1 = null, $id2 = null, $id3 = null)
        {
            echo 'Users Edit!' . PHP_EOL;
            echo $id1 . PHP_EOL;
            echo $id2 . PHP_EOL;
            echo $id3 . PHP_EOL;
        }

    }
then any of these routes would work:
http://localhost:8000/users/edit/1
http://localhost:8000/users/edit/1/2
http://localhost:8000/users/edit/1/2/3
(up to three)
but that's not so flexible, so prob the more flexible way to do it would be something like this in the UsersController
    class UsersController extends \Pop\Controller\AbstractController
    {

        public function index()
        {
            echo 'Users Index!' . PHP_EOL;
        }

        public function edit()
        {
            echo 'Users Edit!' . PHP_EOL;
            $args = func_get_args();
            print_r($args);
        }

    }
where you just capture all of the arguments being passed into the controller's action
so just about any route would work there:
http://localhost:8000/users/edit/1/2/3
http://localhost:8000/users/edit/1/2/3/4/5/6
etc
Nick Sagona
@nicksagona
Let me know if that addresses what you were asking about.
Stas
@SedovSG
Yes, this is it, thank you very much for the detailed answer.
Nick Sagona
@nicksagona
Great. No problem.
John Esteban Astete Arambarri
@johnnestebann
Hi! I'm using and testing this great framework, and I wanna contribute within it; what about to start a document spanish translation?
DrewM
@AndrewM
@nicksagona - Thank you for the update, Nick! I will check it out and let you know...
Nick Sagona
@nicksagona
@AndrewM - cool... it seemed to work for me when tested, but let me know if there's any issues
@johnnestebann that would be fantastic. I know the documentation currently isn't the best. Currently the plan is to release a minor update to the framework (4.5) with some improved/refactored components and with that, I was planning on spending some time trying to improve and expand the current English docs
John Esteban Astete Arambarri
@johnnestebann
@nicksagona ok, excellent!
Nick Sagona
@nicksagona
the docs are currently under this repo: https://github.com/popphp/docs
John Esteban Astete Arambarri
@johnnestebann
I'm gonna see how to do it, because I haven't experience using sphinx
Nick Sagona
@nicksagona
well the main content is in the RST files. I figure we could open up a branch for like 4.5.0-es or something like that?
and then I'd have to figure out how to wire up Readthedocs to build the spanish links/files up from that
John Esteban Astete Arambarri
@johnnestebann
aah ok, I'll open up a new branch and you build de translation later, excellent
Nick Sagona
@nicksagona
Ok
John Esteban Astete Arambarri
@johnnestebann
the traduction begin
Nick Sagona
@nicksagona
cool deal
DrewM
@AndrewM
@nicksagona - I'm having a whole string of these errors pop up - and no luck finding more detail or tracking down the cause. Any suggestion? "PHP Warning: Wrong parameter count for mysqli_stmt::bind_param()"
Nick Sagona
@nicksagona
@AndrewM I'd have to see samples of the code you're working with
are you able to share that so I can take a look?
John Esteban Astete Arambarri
@johnnestebann
@nicksagona thanks fot the updates! great job!
Nick Sagona
@nicksagona
Thanks - you're talking about v5 on pop-db?
That's been released, but not "official" yet. I'm checking other components for any possible issues/BC breaks before it's official
John Esteban Astete Arambarri
@johnnestebann
haha yes, and all the code and effort!