Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Ross Moroney
@code-ph0y
just wanna see what your doing with it ;)
ohhhh the extensions!
is exactly what i need
Roman Tsiupa
@dracony
you can run the examples:
git clone https://github.com/phpixie/template
cd template/examples
composer install
php quickstart.php
Ross Moroney
@code-ph0y
thanks man!
Roman Tsiupa
@dracony
if you need some help down the line
Ross Moroney
@code-ph0y
thanks i will that's me joined the room
Roman Tsiupa
@dracony
cool =)
Paul Dragoonis
@dragoonis
@code-ph0y for raw PHP you gave ViewHelpers. For twig you have Extensions. For Smarty you have Plugins. Pick one. They're all supported in your PPI app
Ross Moroney
@code-ph0y
hey bud hows it going?
ViewHelper you mean TemplateHelper?
$view['calendar']->createCalendar();
function getName() { return 'calendar'; }
like so?
Paul Dragoonis
@dragoonis
That's right!
Ross Moroney
@code-ph0y
amazing ... i love the command line functionality now mate!
Paul Dragoonis
@dragoonis
Which comand ?
Ross Moroney
@code-ph0y
in the modules?
you can create your own now
Paul Dragoonis
@dragoonis
Cool
Autoloaded commands ? :)
Ross Moroney
@code-ph0y
yeah man that's great! lol
Ross Moroney
@code-ph0y
Anyone now an easy way to get every route in the system?
without using Symfony Yaml
?
know*
Paul Dragoonis
@dragoonis
@code-ph0y the 'routing' service is an instance of ChainRouter
from there you can interate each child router and get all of its routes out
Look at the base class, in SymfonyCMF namespace.
Gotta go! Bye!
Ross Moroney
@code-ph0y
thanks man!
much appreciated
Ross Moroney
@code-ph0y
    $collection = $this->getService('router')->getRouteCollection();
    $allRoutes = $collection->all();
    $routes = array_keys($allRoutes);
for future reference if anyones looking for this solution
Paul Dragoonis
@dragoonis
We have a framework Command that is routes:debug that is now broken. The code you posted is close to what it needs to be patched with. Can you give it a bash ?
@code-ph0y
Ross Moroney
@code-ph0y
@dragoonis what branch you working from?
Paul Dragoonis
@dragoonis
@code-ph0y support/2.1
cub3d
@lmaohtp
Hi i was wondering if anyone cloud help me find the git for this dir: /api/vendor/symfony/src/Symfony/Component/Console/Helper/
Paul Dragoonis
@dragoonis
@lmaohtp hello!
Do you still need help ?
Mukke
@DarkMukke
Hey @dragoonis , are you still involved with PHP Scottland conference ?
Layton Everson
@laytoneverson
Screen casts draw a blank page on ppi.io: http://ppi.io/screencasts/1/intro-to-ppi-framework-engine-2-1
Adrian Smith
@slifin
Does PPI support abstracting over forms?
Paul Dragoonis
@dragoonis
Hey @DarkMukke @laytoneverson @slifin
@slifin using a community-supported form component is my recommendation.
Zend\Form is one. Symfony is another.
You can just add it to your composer file and begin using it.